104 lines
5.1 KiB
JSON
104 lines
5.1 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "fs-minipass@^1.2.3",
|
|
"scope": null,
|
|
"escapedName": "fs-minipass",
|
|
"name": "fs-minipass",
|
|
"rawSpec": "^1.2.3",
|
|
"spec": ">=1.2.3 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/tar"
|
|
]
|
|
],
|
|
"_from": "fs-minipass@>=1.2.3 <2.0.0",
|
|
"_id": "fs-minipass@1.2.5",
|
|
"_inCache": true,
|
|
"_location": "/fs-minipass",
|
|
"_nodeVersion": "4.8.4",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/fs-minipass-1.2.5.tgz_1515107144774_0.8260935051366687"
|
|
},
|
|
"_npmUser": {
|
|
"name": "iarna",
|
|
"email": "me@re-becca.org"
|
|
},
|
|
"_npmVersion": "5.6.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "fs-minipass@^1.2.3",
|
|
"scope": null,
|
|
"escapedName": "fs-minipass",
|
|
"name": "fs-minipass",
|
|
"rawSpec": "^1.2.3",
|
|
"spec": ">=1.2.3 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/tar"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz",
|
|
"_shasum": "06c277218454ec288df77ada54a03b8702aacb9d",
|
|
"_shrinkwrap": null,
|
|
"_spec": "fs-minipass@^1.2.3",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/tar",
|
|
"author": {
|
|
"name": "Isaac Z. Schlueter",
|
|
"email": "i@izs.me",
|
|
"url": "http://blog.izs.me/"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/npm/fs-minipass/issues"
|
|
},
|
|
"dependencies": {
|
|
"minipass": "^2.2.1"
|
|
},
|
|
"description": "fs read and write streams based on minipass",
|
|
"devDependencies": {
|
|
"mutate-fs": "^2.0.1",
|
|
"tap": "^10.7.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==",
|
|
"shasum": "06c277218454ec288df77ada54a03b8702aacb9d",
|
|
"tarball": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "fceb43535c348c9cd1ad08edb6c188e04850c245",
|
|
"homepage": "https://github.com/npm/fs-minipass#readme",
|
|
"keywords": [],
|
|
"license": "ISC",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "iarna",
|
|
"email": "me@re-becca.org"
|
|
},
|
|
{
|
|
"name": "isaacs",
|
|
"email": "i@izs.me"
|
|
}
|
|
],
|
|
"name": "fs-minipass",
|
|
"optionalDependencies": {},
|
|
"readme": "# fs-minipass\n\nFilesystem streams based on [minipass](http://npm.im/minipass).\n\n4 classes are exported:\n\n- ReadStream\n- ReadStreamSync\n- WriteStream\n- WriteStreamSync\n\nWhen using `ReadStreamSync`, all of the data is made available\nimmediately upon consuming the stream. Nothing is buffered in memory\nwhen the stream is constructed. If the stream is piped to a writer,\nthen it will synchronously `read()` and emit data into the writer as\nfast as the writer can consume it. (That is, it will respect\nbackpressure.) If you call `stream.read()` then it will read the\nentire file and return the contents.\n\nWhen using `WriteStreamSync`, every write is flushed to the file\nsynchronously. If your writes all come in a single tick, then it'll\nwrite it all out in a single tick. It's as synchronous as you are.\n\nThe async versions work much like their node builtin counterparts,\nwith the exception of introducing significantly less Stream machinery\noverhead.\n\n## USAGE\n\nIt's just streams, you pipe them or read() them or write() to them.\n\n```js\nconst fsm = require('fs-minipass')\nconst readStream = new fsm.ReadStream('file.txt')\nconst writeStream = new fsm.WriteStream('output.txt')\nwriteStream.write('some file header or whatever\\n')\nreadStream.pipe(writeStream)\n```\n\n## ReadStream(path, options)\n\nPath string is required, but somewhat irrelevant if an open file\ndescriptor is passed in as an option.\n\nOptions:\n\n- `fd` Pass in a numeric file descriptor, if the file is already open.\n- `readSize` The size of reads to do, defaults to 16MB\n- `size` The size of the file, if known. Prevents zero-byte read()\n call at the end.\n- `autoClose` Set to `false` to prevent the file descriptor from being\n closed when the file is done being read.\n\n## WriteStream(path, options)\n\nPath string is required, but somewhat irrelevant if an open file\ndescriptor is passed in as an option.\n\nOptions:\n\n- `fd` Pass in a numeric file descriptor, if the file is already open.\n- `mode` The mode to create the file with. Defaults to `0o666`.\n- `start` The position in the file to start reading. If not\n specified, then the file will start writing at position zero, and be\n truncated by default.\n- `autoClose` Set to `false` to prevent the file descriptor from being\n closed when the stream is ended.\n- `flags` Flags to use when opening the file. Irrelevant if `fd` is\n passed in, since file won't be opened in that case. Defaults to\n `'a'` if a `pos` is specified, or `'w'` otherwise.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/npm/fs-minipass.git"
|
|
},
|
|
"scripts": {
|
|
"postpublish": "git push origin --all; git push origin --tags",
|
|
"postversion": "npm publish",
|
|
"preversion": "npm test",
|
|
"test": "tap test/*.js --100 -J"
|
|
},
|
|
"version": "1.2.5"
|
|
}
|