package.json 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "isstream@~0.1.2",
  6. "scope": null,
  7. "escapedName": "isstream",
  8. "name": "isstream",
  9. "rawSpec": "~0.1.2",
  10. "spec": ">=0.1.2 <0.2.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request"
  14. ]
  15. ],
  16. "_from": "isstream@>=0.1.2 <0.2.0",
  17. "_id": "isstream@0.1.2",
  18. "_inCache": true,
  19. "_location": "/isstream",
  20. "_nodeVersion": "1.4.3",
  21. "_npmUser": {
  22. "name": "rvagg",
  23. "email": "rod@vagg.org"
  24. },
  25. "_npmVersion": "2.6.1",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "isstream@~0.1.2",
  29. "scope": null,
  30. "escapedName": "isstream",
  31. "name": "isstream",
  32. "rawSpec": "~0.1.2",
  33. "spec": ">=0.1.2 <0.2.0",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/request"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
  40. "_shasum": "47e63f7af55afa6f92e1500e690eb8b8529c099a",
  41. "_shrinkwrap": null,
  42. "_spec": "isstream@~0.1.2",
  43. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request",
  44. "author": {
  45. "name": "Rod Vagg",
  46. "email": "rod@vagg.org"
  47. },
  48. "bugs": {
  49. "url": "https://github.com/rvagg/isstream/issues"
  50. },
  51. "dependencies": {},
  52. "description": "Determine if an object is a Stream",
  53. "devDependencies": {
  54. "core-util-is": "~1.0.0",
  55. "inherits": "~2.0.1",
  56. "isarray": "0.0.1",
  57. "string_decoder": "~0.10.x",
  58. "tape": "~2.12.3"
  59. },
  60. "directories": {},
  61. "dist": {
  62. "shasum": "47e63f7af55afa6f92e1500e690eb8b8529c099a",
  63. "tarball": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz"
  64. },
  65. "gitHead": "cd39cba6da939b4fc9110825203adc506422c3dc",
  66. "homepage": "https://github.com/rvagg/isstream",
  67. "keywords": [
  68. "stream",
  69. "type",
  70. "streams",
  71. "readable-stream",
  72. "hippo"
  73. ],
  74. "license": "MIT",
  75. "main": "isstream.js",
  76. "maintainers": [
  77. {
  78. "name": "rvagg",
  79. "email": "rod@vagg.org"
  80. }
  81. ],
  82. "name": "isstream",
  83. "optionalDependencies": {},
  84. "readme": "# isStream\n\n[![Build Status](https://secure.travis-ci.org/rvagg/isstream.png)](http://travis-ci.org/rvagg/isstream)\n\n**Test if an object is a `Stream`**\n\n[![NPM](https://nodei.co/npm/isstream.svg)](https://nodei.co/npm/isstream/)\n\nThe missing `Stream.isStream(obj)`: determine if an object is standard Node.js `Stream`. Works for Node-core `Stream` objects (for 0.8, 0.10, 0.11, and in theory, older and newer versions) and all versions of **[readable-stream](https://github.com/isaacs/readable-stream)**.\n\n## Usage:\n\n```js\nvar isStream = require('isstream')\nvar Stream = require('stream')\n\nisStream(new Stream()) // true\n\nisStream({}) // false\n\nisStream(new Stream.Readable()) // true\nisStream(new Stream.Writable()) // true\nisStream(new Stream.Duplex()) // true\nisStream(new Stream.Transform()) // true\nisStream(new Stream.PassThrough()) // true\n```\n\n## But wait! There's more!\n\nYou can also test for `isReadable(obj)`, `isWritable(obj)` and `isDuplex(obj)` to test for implementations of Streams2 (and Streams3) base classes.\n\n```js\nvar isReadable = require('isstream').isReadable\nvar isWritable = require('isstream').isWritable\nvar isDuplex = require('isstream').isDuplex\nvar Stream = require('stream')\n\nisReadable(new Stream()) // false\nisWritable(new Stream()) // false\nisDuplex(new Stream()) // false\n\nisReadable(new Stream.Readable()) // true\nisReadable(new Stream.Writable()) // false\nisReadable(new Stream.Duplex()) // true\nisReadable(new Stream.Transform()) // true\nisReadable(new Stream.PassThrough()) // true\n\nisWritable(new Stream.Readable()) // false\nisWritable(new Stream.Writable()) // true\nisWritable(new Stream.Duplex()) // true\nisWritable(new Stream.Transform()) // true\nisWritable(new Stream.PassThrough()) // true\n\nisDuplex(new Stream.Readable()) // false\nisDuplex(new Stream.Writable()) // false\nisDuplex(new Stream.Duplex()) // true\nisDuplex(new Stream.Transform()) // true\nisDuplex(new Stream.PassThrough()) // true\n```\n\n*Reminder: when implementing your own streams, please [use **readable-stream** rather than core streams](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).*\n\n\n## License\n\n**isStream** is Copyright (c) 2015 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.\n",
  85. "readmeFilename": "README.md",
  86. "repository": {
  87. "type": "git",
  88. "url": "git+https://github.com/rvagg/isstream.git"
  89. },
  90. "scripts": {
  91. "test": "tar --xform 's/^package/readable-stream-1.0/' -zxf readable-stream-1.0.*.tgz && tar --xform 's/^package/readable-stream-1.1/' -zxf readable-stream-1.1.*.tgz && node test.js; rm -rf readable-stream-1.?/"
  92. },
  93. "version": "0.1.2"
  94. }