-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
46 lines (46 loc) · 2.49 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"name": "pause",
"description": "Pause a stream's data events",
"version": "0.1.0",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"contributors": [
{
"name": "Douglas Christopher Wilson",
"email": "doug@somethingdoug.com"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/stream-utils/pause"
},
"devDependencies": {
"after": "0.8.1",
"istanbul": "0.3.17",
"mocha": "1.21.5"
},
"files": [
"HISTORY.md",
"LICENSE",
"README.md",
"index.js"
],
"engines": {
"node": ">= 0.6"
},
"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/"
},
"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",
"bugs": {
"url": "https://github.com/stream-utils/pause/issues"
},
"_id": "pause@0.1.0",
"_from": "pause@0.1.0"
}