package.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "from@~0",
  6. "scope": null,
  7. "escapedName": "from",
  8. "name": "from",
  9. "rawSpec": "~0",
  10. "spec": ">=0.0.0 <1.0.0",
  11. "type": "range"
  12. },
  13. "/home/king/Desktop/FINAL/AhMyth/app/node_modules/event-stream"
  14. ]
  15. ],
  16. "_from": "from@>=0.0.0 <1.0.0",
  17. "_id": "from@0.1.3",
  18. "_inCache": true,
  19. "_installable": true,
  20. "_location": "/from",
  21. "_npmUser": {
  22. "name": "dominictarr",
  23. "email": "dominic.tarr@gmail.com"
  24. },
  25. "_npmVersion": "1.2.3",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "from@~0",
  29. "scope": null,
  30. "escapedName": "from",
  31. "name": "from",
  32. "rawSpec": "~0",
  33. "spec": ">=0.0.0 <1.0.0",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/event-stream"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/from/-/from-0.1.3.tgz",
  40. "_shasum": "ef63ac2062ac32acf7862e0d40b44b896f22f3bc",
  41. "_shrinkwrap": null,
  42. "_spec": "from@~0",
  43. "_where": "/home/king/Desktop/FINAL/AhMyth/app/node_modules/event-stream",
  44. "author": {
  45. "name": "Dominic Tarr",
  46. "email": "dominic.tarr@gmail.com",
  47. "url": "dominictarr.com"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/dominictarr/from/issues"
  51. },
  52. "dependencies": {},
  53. "description": "Easy way to make a Readable Stream",
  54. "devDependencies": {
  55. "assertions": "~2.3.0",
  56. "asynct": "1",
  57. "stream-spec": "0"
  58. },
  59. "directories": {},
  60. "dist": {
  61. "shasum": "ef63ac2062ac32acf7862e0d40b44b896f22f3bc",
  62. "tarball": "https://registry.npmjs.org/from/-/from-0.1.3.tgz"
  63. },
  64. "homepage": "https://github.com/dominictarr/from#readme",
  65. "keywords": [
  66. "stream",
  67. "streams",
  68. "readable",
  69. "easy"
  70. ],
  71. "license": "MIT",
  72. "main": "index.js",
  73. "maintainers": [
  74. {
  75. "name": "dominictarr",
  76. "email": "dominic.tarr@gmail.com"
  77. }
  78. ],
  79. "name": "from",
  80. "optionalDependencies": {},
  81. "readme": "# from\n\nAn easy way to create a `readable Stream`.\n\n## from(function getChunk(count, next))\n\nfrom takes a `getChunk` function and returns a stream. \n\n`getChunk` is called again and again, after each time the user calls `next()`, \nuntil the user emits `'end'`\n\nif `pause()` is called, the `getChunk` won't be called again untill `resume()` is called.\n\n\n```js\nvar from = require('from')\n\nvar stream = \n from(function getChunk(count, next) {\n //do some sort of data\n this.emit('data', whatever)\n \n if(itsOver)\n this.emit('end')\n\n //ready to handle the next chunk\n next()\n //or, if it's sync:\n return true \n })\n```\n\n## from(array)\n\nfrom also takes an `Array` whose elements it emits one after another.\n\n## License\nMIT / Apache2\n",
  82. "readmeFilename": "readme.markdown",
  83. "repository": {
  84. "type": "git",
  85. "url": "git://github.com/dominictarr/from.git"
  86. },
  87. "scripts": {
  88. "test": "asynct test/*.js"
  89. },
  90. "version": "0.1.3"
  91. }