stdlib
stdlib copied to clipboard
FileAttachment.of(file or blob or url)
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
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).