package.json 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "fork-stream@^0.0.4",
  6. "scope": null,
  7. "escapedName": "fork-stream",
  8. "name": "fork-stream",
  9. "rawSpec": "^0.0.4",
  10. "spec": ">=0.0.4 <0.0.5",
  11. "type": "range"
  12. },
  13. "/home/king/Desktop/FINAL/AhMyth/app/node_modules/ternary-stream"
  14. ]
  15. ],
  16. "_from": "fork-stream@>=0.0.4 <0.0.5",
  17. "_id": "fork-stream@0.0.4",
  18. "_inCache": true,
  19. "_installable": true,
  20. "_location": "/fork-stream",
  21. "_npmUser": {
  22. "name": "deoxxa",
  23. "email": "deoxxa@fknsrs.biz"
  24. },
  25. "_npmVersion": "1.2.32",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "fork-stream@^0.0.4",
  29. "scope": null,
  30. "escapedName": "fork-stream",
  31. "name": "fork-stream",
  32. "rawSpec": "^0.0.4",
  33. "spec": ">=0.0.4 <0.0.5",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/ternary-stream"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz",
  40. "_shasum": "db849fce77f6708a5f8f386ae533a0907b54ae70",
  41. "_shrinkwrap": null,
  42. "_spec": "fork-stream@^0.0.4",
  43. "_where": "/home/king/Desktop/FINAL/AhMyth/app/node_modules/ternary-stream",
  44. "author": {
  45. "name": "Conrad Pankoff",
  46. "email": "deoxxa@fknsrs.biz",
  47. "url": "http://www.fknsrs.biz/"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/deoxxa/fork-stream/issues"
  51. },
  52. "dependencies": {},
  53. "description": "Fork a stream in multiple directions according to a function",
  54. "devDependencies": {
  55. "chai": "~1.7.2",
  56. "mocha": "~1.12.1"
  57. },
  58. "directories": {},
  59. "dist": {
  60. "shasum": "db849fce77f6708a5f8f386ae533a0907b54ae70",
  61. "tarball": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz"
  62. },
  63. "homepage": "https://github.com/deoxxa/fork-stream#readme",
  64. "keywords": [
  65. "stream",
  66. "fork",
  67. "split",
  68. "function",
  69. "conditional"
  70. ],
  71. "license": "BSD",
  72. "main": "index.js",
  73. "maintainers": [
  74. {
  75. "name": "deoxxa",
  76. "email": "deoxxa@fknsrs.biz"
  77. }
  78. ],
  79. "name": "fork-stream",
  80. "optionalDependencies": {},
  81. "readme": "fork-stream [![build status](https://travis-ci.org/deoxxa/fork-stream.png)](https://travis-ci.org/deoxxa/fork-stream)\n===========\n\nFork a stream in multiple directions according to a function.\n\nOverview\n--------\n\nfork-stream basically gives you conditional branching for streams. You supply\nthe logic, fork-stream supplies the streaming.\n\nSuper Quickstart\n----------------\n\nCode:\n\n```javascript\nvar ForkStream = require(\"fork-stream\");\n\nvar fork = new ForkStream({\n classifier: function classify(e, done) {\n return done(null, e.match(/[aeiou]/));\n },\n});\n\nfork.a.on(\"data\", console.log.bind(console, \"vowels:\"));\nfork.b.on(\"data\", console.log.bind(console, \"no vowels:\"));\n\nfork.write(\"hello\");\nfork.write(\"zxcbzz\");\nfork.write(\"ooooooo\");\n\nfork.end();\n```\n\nOutput:\n\n```\nvowels: hello\nno vowels: zxcbzz\nvowels: ooooooo\n```\n\nInstallation\n------------\n\nAvailable via [npm](http://npmjs.org/):\n\n> $ npm install fork-stream\n\nOr via git:\n\n> $ git clone git://github.com/deoxxa/fork-stream.git node_modules/fork-stream\n\nAPI\n---\n\n**constructor**\n\nCreates a new fork-stream.\n\n```javascript\nnew ForkStream(options);\n```\n\n```javascript\nvar fork = new ForkStream({\n highWaterMark: 5,\n classifier: function(e, done) {\n return done(null, !!e);\n },\n});\n```\n\n* _options_ - regular stream options, and a `classifier` property that\n fork-stream will use to decide what output stream to send your object down.\n\nExample\n-------\n\nAlso see [example.js](https://github.com/deoxxa/fork-stream/blob/master/example.js).\n\n```javascript\nvar ForkStream = require(\"fork-stream\");\n\nvar fork = new ForkStream({\n classifier: function classify(e, done) {\n return done(null, e >= 5);\n },\n});\n\nfork.a.on(\"data\", console.log.bind(null, \"a\"));\nfork.b.on(\"data\", console.log.bind(null, \"b\"));\n\nfor (var i=0;i<20;++i) {\n fork.write(Math.round(Math.random() * 10));\n}\n```\n\nOutput:\n\n```\nb 1\na 6\na 9\na 10\na 7\na 5\nb 2\nb 4\na 8\nb 3\na 5\nb 4\na 7\na 8\nb 1\na 6\nb 2\nb 0\na 5\nb 1\n```\n\nLicense\n-------\n\n3-clause BSD. A copy is included with the source.\n\nContact\n-------\n\n* GitHub ([deoxxa](http://github.com/deoxxa))\n* Twitter ([@deoxxa](http://twitter.com/deoxxa))\n* Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))\n",
  82. "readmeFilename": "README.md",
  83. "repository": {
  84. "type": "git",
  85. "url": "git://github.com/deoxxa/fork-stream.git"
  86. },
  87. "scripts": {
  88. "test": "mocha -R tap"
  89. },
  90. "version": "0.0.4"
  91. }