{ "_args": [ [ { "raw": "pause@0.1.0", "scope": null, "escapedName": "pause", "name": "pause", "rawSpec": "0.1.0", "spec": "0.1.0", "type": "version" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/connect" ] ], "_from": "pause@0.1.0", "_id": "pause@0.1.0", "_inCache": true, "_location": "/pause", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "1.4.28", "_phantomChildren": {}, "_requested": { "raw": "pause@0.1.0", "scope": null, "escapedName": "pause", "name": "pause", "rawSpec": "0.1.0", "spec": "0.1.0", "type": "version" }, "_requiredBy": [ "/connect" ], "_resolved": "https://registry.npmjs.org/pause/-/pause-0.1.0.tgz", "_shasum": "ebc8a4a8619ff0b8a81ac1513c3434ff469fdb74", "_shrinkwrap": null, "_spec": "pause@0.1.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/connect", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "bugs": { "url": "https://github.com/stream-utils/pause/issues" }, "contributors": [ { "name": "Douglas Christopher Wilson", "email": "doug@somethingdoug.com" } ], "dependencies": {}, "description": "Pause a stream's data events", "devDependencies": { "after": "0.8.1", "istanbul": "0.3.17", "mocha": "1.21.5" }, "directories": {}, "dist": { "shasum": "ebc8a4a8619ff0b8a81ac1513c3434ff469fdb74", "tarball": "https://registry.npmjs.org/pause/-/pause-0.1.0.tgz" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "README.md", "index.js" ], "gitHead": "ad2d6924b4f90e79511a07a058899172acd3e59b", "homepage": "https://github.com/stream-utils/pause#readme", "license": "MIT", "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "name": "pause", "optionalDependencies": {}, "readme": "# pause\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nPause a stream's data events\n\n## Installation\n\n```sh\n$ npm install pause\n```\n\n## API\n\n```js\nvar pause = require('pause')\n```\n\n### handle = pause(stream)\n\nPause the data events on a stream and return a handle to resume or end the\nstream.\n\n#### handle.end()\n\nDispose of the handle. This does not end the stream, but it simply discards\nthe event collection, making `handle.resume()` a no-op.\n\n#### handle.resume()\n\nResume the stream by re-emitting all the `data` events in the same order,\nfollowed by an `end` event, if that was emitting during the pause.\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/pause.svg\n[npm-url]: https://npmjs.org/package/pause\n[node-image]: https://img.shields.io/node/v/pause.svg\n[node-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/stream-utils/pause/master.svg\n[travis-url]: https://travis-ci.org/stream-utils/pause\n[coveralls-image]: https://img.shields.io/coveralls/stream-utils/pause.svg\n[coveralls-url]: https://coveralls.io/r/stream-utils/pause?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/pause.svg\n[downloads-url]: https://npmjs.org/package/pause\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/stream-utils/pause.git" }, "scripts": { "test": "mocha --reporter spec --bail --check-leaks test/", "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" }, "version": "0.1.0" }