{"_id":"@remix-run/web-file","_rev":"3139702","name":"@remix-run/web-file","description":"Web API compatible File implementation for node","dist-tags":{"latest":"3.1.0","pre":"3.1.0-pre.0"},"maintainers":[{"name":"mjackson","email":""}],"time":{"modified":"2023-11-27T06:47:34.000Z","created":"2022-04-28T22:12:46.815Z","3.1.0":"2023-09-13T16:26:30.497Z","3.1.0-pre.0":"2023-09-01T16:53:02.491Z","3.0.3":"2023-08-01T22:12:11.927Z","3.0.2":"2022-04-28T22:12:46.815Z"},"users":{},"author":{"name":"Irakli Gozalishvili","email":"dev@gozala.io","url":"https://gozala.io"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"versions":{"3.1.0":{"name":"@remix-run/web-file","version":"3.1.0","description":"Web API compatible File implementation for node","keywords":["file","blob","typed","typescript"],"type":"module","module":"./src/lib.js","main":"./dist/src/lib.node.cjs","browser":{"./src/lib.node.js":"./src/lib.js"},"types":"./dist/src/lib.d.ts","exports":{".":{"types":"./dist/src/lib.d.ts","browser":{"require":"./dist/src/lib.cjs","import":"./src/lib.js"},"require":"./dist/src/lib.node.cjs","node":"./src/lib.node.js"}},"dependencies":{"@remix-run/web-blob":"^3.1.0"},"author":{"name":"Irakli Gozalishvili","email":"dev@gozala.io","url":"https://gozala.io"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"license":"MIT","devDependencies":{"@remix-run/web-fetch":"^4.4.0","@types/node":"15.0.2","git-validate":"2.2.4","husky":"^6.0.0","lint-staged":"^11.0.0","playwright-test":"^7.2.0","prettier":"^2.3.0","rimraf":"3.0.2","rollup":"2.47.0","rollup-plugin-multi-input":"1.2.0","typescript":"^4.4.4","uvu":"0.5.2"},"scripts":{"typecheck":"tsc","build":"npm run build:cjs && npm run build:types","build:cjs":"rollup --config rollup.config.js","build:types":"tsc --build","prepare":"npm run build","test:es":"uvu test all.spec.js","test:web":"playwright-test -r uvu test/web.spec.js","test:cjs":"rimraf dist && npm run build && node dist/test/all.spec.cjs","test":"npm run test:es && npm run test:web && npm run test:cjs","precommit":"lint-staged"},"lint-staged":{"*.js":["prettier --no-semi --write","git add"]},"gitHead":"e8418530bada7cbaaf224106384ce427b4341222","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"homepage":"https://github.com/remix-run/web-std-io#readme","_id":"@remix-run/web-file@3.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"07219021a2910e90231bc30ca1ce693d0e9d3825","size":4919,"noattachment":false,"key":"/@remix-run/web-file/-/@remix-run/web-file-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@remix-run/web-file/download/@remix-run/web-file-3.1.0.tgz"},"_npmUser":{"name":"mjackson","email":"mjijackson+npm@gmail.com"},"directories":{},"maintainers":[{"name":"mjackson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-file_3.1.0_1694622390246_0.15945683273572997"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-13T16:26:30.497Z","publish_time":1694622390497,"_source_registry_name":"default","_cnpm_publish_time":1694622390497},"3.1.0-pre.0":{"name":"@remix-run/web-file","version":"3.1.0-pre.0","description":"Web API compatible File implementation for node","keywords":["file","blob","typed","typescript"],"type":"module","module":"./src/lib.js","main":"./dist/src/lib.node.cjs","browser":{"./src/lib.node.js":"./src/lib.js"},"types":"./dist/src/lib.d.ts","exports":{".":{"types":"./dist/src/lib.d.ts","browser":{"require":"./dist/src/lib.cjs","import":"./src/lib.js"},"require":"./dist/src/lib.node.cjs","node":"./src/lib.node.js"}},"dependencies":{"@remix-run/web-blob":"^3.1.0-pre.0"},"author":{"name":"Irakli Gozalishvili","email":"dev@gozala.io","url":"https://gozala.io"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"license":"MIT","devDependencies":{"@remix-run/web-fetch":"^4.4.0-pre.0","@types/node":"15.0.2","git-validate":"2.2.4","husky":"^6.0.0","lint-staged":"^11.0.0","playwright-test":"^7.2.0","prettier":"^2.3.0","rimraf":"3.0.2","rollup":"2.47.0","rollup-plugin-multi-input":"1.2.0","typescript":"^4.4.4","uvu":"0.5.2"},"scripts":{"typecheck":"tsc","build":"npm run build:cjs && npm run build:types","build:cjs":"rollup --config rollup.config.js","build:types":"tsc --build","prepare":"npm run build","test:es":"uvu test all.spec.js","test:web":"playwright-test -r uvu test/web.spec.js","test:cjs":"rimraf dist && npm run build && node dist/test/all.spec.cjs","test":"npm run test:es && npm run test:web && npm run test:cjs","precommit":"lint-staged"},"lint-staged":{"*.js":["prettier --no-semi --write","git add"]},"readmeFilename":"Readme.md","gitHead":"e5fa79431539db79f0963cd317639a866619524e","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"homepage":"https://github.com/remix-run/web-std-io#readme","_id":"@remix-run/web-file@3.1.0-pre.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"b3e096dadc827e2766b6e5de24e41ce51fd9426c","size":4925,"noattachment":false,"key":"/@remix-run/web-file/-/@remix-run/web-file-3.1.0-pre.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@remix-run/web-file/download/@remix-run/web-file-3.1.0-pre.0.tgz"},"_npmUser":{"name":"mjackson","email":"mjijackson+npm@gmail.com"},"directories":{},"maintainers":[{"name":"mjackson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-file_3.1.0-pre.0_1693587182233_0.4749625377942348"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-01T16:53:02.491Z","publish_time":1693587182491,"_source_registry_name":"default","_cnpm_publish_time":1693587182491},"3.0.3":{"name":"@remix-run/web-file","version":"3.0.3","description":"Web API compatible File implementation for node","keywords":["file","blob","typed","typescript"],"type":"module","module":"./src/lib.js","main":"./dist/src/lib.node.cjs","browser":{"./src/lib.node.js":"./src/lib.js"},"types":"./dist/src/lib.d.ts","exports":{".":{"types":"./dist/src/lib.d.ts","browser":"./src/lib.js","require":"./dist/src/lib.node.cjs","node":"./src/lib.node.js"}},"dependencies":{"@remix-run/web-blob":"^3.0.5"},"author":{"name":"Irakli Gozalishvili","email":"dev@gozala.io","url":"https://gozala.io"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"license":"MIT","devDependencies":{"@remix-run/web-fetch":"^4.3.6","@types/node":"15.0.2","git-validate":"2.2.4","husky":"^6.0.0","lint-staged":"^11.0.0","playwright-test":"^7.2.0","prettier":"^2.3.0","rimraf":"3.0.2","rollup":"2.47.0","rollup-plugin-multi-input":"1.2.0","typescript":"^4.4.4","uvu":"0.5.2"},"scripts":{"check":"tsc --build","build":"npm run build:cjs && npm run build:types","build:cjs":"rollup --config rollup.config.js","build:types":"tsc --build","prepare":"npm run build","test:es":"uvu test all.spec.js","test:web":"playwright-test -r uvu test/web.spec.js","test:cjs":"rimraf dist && npm run build && node dist/test/all.spec.cjs","test":"npm run test:es && npm run test:web && npm run test:cjs","precommit":"lint-staged"},"lint-staged":{"*.js":["prettier --no-semi --write","git add"]},"gitHead":"4fc5047f3a54a07ffea81347ff5063b5874d3cf0","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"homepage":"https://github.com/remix-run/web-std-io#readme","_id":"@remix-run/web-file@3.0.3","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"shasum":"bf8d26d5a10a8dfda8a94438df93f4ccdc786680","size":4905,"noattachment":false,"key":"/@remix-run/web-file/-/@remix-run/web-file-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@remix-run/web-file/download/@remix-run/web-file-3.0.3.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"mjackson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-file_3.0.3_1690927931765_0.018653757165403517"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-01T22:12:11.927Z","publish_time":1690927931927,"_source_registry_name":"default","_cnpm_publish_time":1690927931927},"3.0.2":{"name":"@remix-run/web-file","version":"3.0.2","description":"Web API compatible File implementation for node","keywords":["file","blob","typed","typescript"],"type":"module","module":"./src/lib.js","main":"./dist/src/lib.node.cjs","browser":{"./src/lib.node.js":"./src/lib.js"},"exports":{".":{"browser":"./src/lib.js","require":"./dist/src/lib.node.cjs","node":"./src/lib.node.js"}},"types":"./dist/src/lib.d.ts","dependencies":{"@remix-run/web-blob":"^3.0.3"},"author":{"name":"Irakli Gozalishvili","email":"dev@gozala.io","url":"https://gozala.io"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"license":"MIT","devDependencies":{"@types/node":"15.0.2","@web-std/fetch":"^3.0.0","git-validate":"2.2.4","husky":"^6.0.0","lint-staged":"^11.0.0","playwright-test":"^7.2.0","prettier":"^2.3.0","rimraf":"3.0.2","rollup":"2.47.0","rollup-plugin-multi-input":"1.2.0","typescript":"^4.4.4","uvu":"0.5.2"},"scripts":{"check":"tsc --build","build":"npm run build:cjs && npm run build:types","build:cjs":"rollup --config rollup.config.js","build:types":"tsc --build","prepare":"npm run build","test:es":"uvu test all.spec.js","test:web":"playwright-test -r uvu test/web.spec.js","test:cjs":"rimraf dist && npm run build && node dist/test/all.spec.cjs","test":"npm run test:es && npm run test:web && npm run test:cjs","precommit":"lint-staged"},"lint-staged":{"*.js":["prettier --no-semi --write","git add"]},"gitHead":"acfbdba347005e9adf2c72886d4720e659dc20dc","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"homepage":"https://github.com/remix-run/web-std-io#readme","_id":"@remix-run/web-file@3.0.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"1a6cc0900a1310ede4bc96abad77ac6eb27a2131","size":4896,"noattachment":false,"key":"/@remix-run/web-file/-/@remix-run/web-file-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@remix-run/web-file/download/@remix-run/web-file-3.0.2.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"mjackson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-file_3.0.2_1651183966672_0.5056973684066344"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-28T22:13:40.102Z","publish_time":1651183966815,"_cnpm_publish_time":1651183966815}},"readme":"# web-file\n\n[![ci][ci.icon]][ci.url]\n[![package][version.icon] ![downloads][downloads.icon]][package.url]\n[![styled with prettier][prettier.icon]][prettier.url]\n\nWeb API compatible [File][] for nodejs.\n\n### Usage\n\n```js\nimport { File, Blob } from \"@remix-run/web-file\"\nconst file = new File([\"hello\", new TextEncoder().encode(\"world\")], \"hello\")\nfor await (const chunk of blob.stream()) {\n  console.log(chunk)\n}\n```\n\n### Usage from Typescript\n\nThis library makes use of [typescript using JSDOC annotations][ts-jsdoc] and\nalso generates type difinitions along with typed definition maps. So you should\nbe able to get all the type innference out of the box.\n\n## Install\n\n    npm install @remix-run/web-file\n\n[ci.icon]: https://github.com/web-std/io/workflows/file/badge.svg\n[ci.url]: https://github.com/web-std/io/actions/workflows/file.yml\n[version.icon]: https://img.shields.io/npm/v/@remix-run/web-file.svg\n[downloads.icon]: https://img.shields.io/npm/dm/@remix-run/web-file.svg\n[package.url]: https://npmjs.org/package/@remix-run/web-file\n[downloads.image]: https://img.shields.io/npm/dm/@remix-run/web-file.svg\n[downloads.url]: https://npmjs.org/package/@remix-run/web-file\n[prettier.icon]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg\n[prettier.url]: https://github.com/prettier/prettier\n[blob]: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob\n[fetch-blob]: https://github.com/node-fetch/fetch-blob\n[readablestream]: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream\n[readable]: https://nodejs.org/api/stream.html#stream_readable_streams\n[file]: https://w3c.github.io/FileAPI/\n[for await]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of\n[buffer]: https://nodejs.org/api/buffer.html\n[weakmap]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n[ts-jsdoc]: https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html\n","_attachments":{},"homepage":"https://github.com/remix-run/web-std-io#readme","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"license":"MIT"}