@anio-js-foundation/create-temporary-resource
v2.0.0
Published
Create a temporary resource in a browser or in node.
Downloads
152
Readme
@anio-js-foundation/create-temporary-resource
Create a temporary resource.
Uses the filesystem in node and Blobs in Browsers.
import createTemporaryResource from "@anio-js-foundation/create-temporary-resource"
const {location, cleanup} = await createTemporaryResource(
`console.log("hello")`, {type: "text/javascript"}
)
console.log(location)
cleanup()