observable-framework-files
Files
Observable Framework documentation: Files Source: https://observablehq.com/framework/files
Load files — whether static or generated dynamically by a data loader — using the built-in FileAttachment function. This is available by default in Markdown, but you can import it explicitly like so:
import {FileAttachment} from "observablehq:stdlib";
The FileAttachment function takes a path and returns a file handle. This handle exposes:
name- the file’s name (such asvolcano.json),mimeType- MIME type (such asapplication/json),lastModified- modification time (in milliseconds since epoch), andsize- size in bytes .
More from spqw/skill-observable-framework
observable-framework-lib-deckgl
Using Deck.gl in Observable Framework for large-scale geospatial data visualization.
11observable-framework-lib-mapbox-gl
Using Mapbox GL JS in Observable Framework for vector tile maps.
4observable-framework-jsx
Using JSX (React components) in Observable Framework pages.
3observable-framework-embeds
How to embed Observable Framework pages and components into other websites.
3observable-framework-input-range
Range slider input component in Observable Framework — select a numeric value.
3observable-framework-lib-tex
Using TeX/LaTeX in Observable Framework for mathematical typesetting.
3