quartz/wallet/node_modules/@web-std/file
2022-03-04 20:05:23 +08:00
..
dist/src Initialising for #8 2022-03-04 20:05:23 +08:00
src Initialising for #8 2022-03-04 20:05:23 +08:00
License.md Initialising for #8 2022-03-04 20:05:23 +08:00
package.json Initialising for #8 2022-03-04 20:05:23 +08:00
Readme.md Initialising for #8 2022-03-04 20:05:23 +08:00

web-file

ci package downloads styled with prettier

Web API compatible File for nodejs.

Usage

import { File, Blob } from "@web-std/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 @web-std/file