@remix-run/web-file
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

web-file

ci package downloads styled with prettier

Web API compatible File for nodejs.

Usage

import { File, Blob } from "@remix-run/web-file"
const file = new File(["hello", new TextEncoder().encode("world")], "hello")
for await (const chunk of blob.stream()) {
  console.log(chunk)
}

Usage from Typescript

This library makes use of typescript using JSDOC annotations and also generates type difinitions along with typed definition maps. So you should be able to get all the type innference out of the box.

Install

npm install @remix-run/web-file

Dependencies (1)

Dev Dependencies (12)

Package Sidebar

Install

npm i @remix-run/web-file

Weekly Downloads

761,880

Version

3.1.0

License

MIT

Unpacked Size

15.2 kB

Total Files

23

Last publish

Collaborators

  • chancestrickland
  • mjackson