{"name":"pull-abortable","description":"a pull-stream which may be aborted","version":"4.1.0","homepage":"https://github.com/dominictarr/pull-abortable","repository":{"type":"git","url":"git://github.com/dominictarr/pull-abortable.git"},"dependencies":{},"devDependencies":{"interleavings":"~0.3.0","pull-stream":"~2.26.0"},"scripts":{"prepublish":"npm ls &&  npm test","test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","gitHead":"0818a4dc282e0d105d78df65e551cee3a012def0","bugs":{"url":"https://github.com/dominictarr/pull-abortable/issues"},"_id":"pull-abortable@4.1.0","_shasum":"4d39a8cc9abaea07e7fc44cbb0538e6474a8ca13","_from":".","_npmVersion":"2.11.0","_nodeVersion":"0.12.4","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"4d39a8cc9abaea07e7fc44cbb0538e6474a8ca13","tarball":"http://registry-npm.ywwl.com/pull-abortable/download/pull-abortable-4.1.0.tgz","integrity":"sha512-Ije8bp+OQbl1UwuhZMsYCc3qdKgdof4vxWgsZplD3+xkJHxzBRYxsOqBAPMINTq8j/Y+7M5hPGvkKNhEB5XGVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOs0BBMZAA1JhkFEq2OBMJcVCPzhB7qzv2066GrzfZ4AiEAqLCdsXOkCA8XzUov3OyZU7LQqUXaqMoQKYiDqqCNt20="}],"size":2552,"noattachment":false,"key":"/pull-abortable/-/pull-abortable-4.1.0.tgz"},"directories":{},"readme":"# pull-abortable\n\na pull-stream that may be aborted from the outside.\n\n# example\n\n``` js\nvar pull = require('pull-stream')\nvar Abortable = require('pull-abortable')\n\nvar abortable = Abortable()\npull(\n  source,\n  abortable,\n  sink\n)\n//at any time you can abort the pipeline,\n//the source will be cleaned up, and any\n//error will be passed to the sink next time it reads.\natAnyTime(function () {\n  abortable.abort()\n})\n\n// abort the stream and end with an error\nabortable.abort(new Error('example'))\n```\n\n## License\n\nMIT\n","publish_time":1434385246984,"_cnpm_publish_time":1434385246984,"dist-tags":{"latest":"4.1.1"}}