You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Replacement]: fetch-blob and formdata-polyfill #1309
Blob and FormData are globals since Node.js v18, File since v20, fs.openAsBlob since v19.8. all available in Deno, Bun and modern browsers
Rationale
both are polyfills that come in through node-fetch@3 (~97M weekly downloads each). node-fetch is already in the manifests, but these get installed on their own too. blobFrom(path) and openAsBlob(path) gave the same contents, and formdata-polyfill's formDataToBlob(fd) is new Response(fd).blob() natively. fileFrom doesn't have a one-call native version, it'd be new File([await openAsBlob(path)], name)
Activity