uploadTo0x0
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
usage:
import { uploadTo0x0 } from "https://esm.town/v/stevekrouse/uploadTo0x0"
console.log(await uploadTo0x0("test data", "filename"))
data can be a string, a TypedArray, an ArrayBuffer, or a Blob
returns a url (ie https://0x0.st/X-wB.txt
) to a file that expires after an hour
Migrated from folder: Archive/uploadTo0x0