stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

FileAttachment.of(file or blob or url)

Open mbostock opened this issue 3 years ago • 1 comments

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

mbostock avatar Aug 23 '21 19:08 mbostock

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).

Fil avatar Nov 24 '22 06:11 Fil