observablehq / stdlib

The Observable standard library.
https://observablehq.com/@observablehq/standard-library
ISC License
959 stars 83 forks source link

FileAttachment.of(file or blob or url) #245

Open mbostock opened 2 years ago

mbostock commented 2 years ago

It’d be nice to have a way to use the FileAttachment helpers with things that are not file attachments. E.g., https://observablehq.com/@mbostock/localfile

Fil commented 1 year ago

Similar suggestion for remote parquet files support in DuckDB: https://observablehq.com/@monitus/get-remote-parquet-files-directly

I'm often something that's based on:

remote = require("@observablehq/stdlib").then((d) => d.FileAttachments(url => url))

(… except it also tries to detect and fix cors issues).