| 1 |
{ |
| 2 |
"_id": "isstream", |
| 3 |
"_rev": "14-60b7c3e17afe078e6aa38bf38a08e553", |
| 4 |
"name": "isstream", |
| 5 |
"description": "Determine if an object is a Stream", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.1.2" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.0": { |
| 11 |
"name": "isstream", |
| 12 |
"version": "0.0.0", |
| 13 |
"description": "Determine if an object is a Stream", |
| 14 |
"main": "isstream.js", |
| 15 |
"scripts": { |
| 16 |
"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.?/" |
| 17 |
}, |
| 18 |
"repository": { |
| 19 |
"type": "git", |
| 20 |
"url": "https://github.com/rvagg/isstream.git" |
| 21 |
}, |
| 22 |
"keywords": [ |
| 23 |
"stream", |
| 24 |
"type", |
| 25 |
"streams", |
| 26 |
"readable-stream", |
| 27 |
"hippo" |
| 28 |
], |
| 29 |
"devDependencies": { |
| 30 |
"tape": "~2.12.3", |
| 31 |
"core-util-is": "~1.0.0", |
| 32 |
"isarray": "0.0.1", |
| 33 |
"string_decoder": "~0.10.x", |
| 34 |
"inherits": "~2.0.1" |
| 35 |
}, |
| 36 |
"author": { |
| 37 |
"name": "Rod Vagg", |
| 38 |
"email": "[email protected]" |
| 39 |
}, |
| 40 |
"license": "MIT", |
| 41 |
"bugs": { |
| 42 |
"url": "https://github.com/rvagg/isstream/issues" |
| 43 |
}, |
| 44 |
"homepage": "https://github.com/rvagg/isstream", |
| 45 |
"_id": "[email protected]", |
| 46 |
"dist": { |
| 47 |
"shasum": "566875667e0178ca298d5c869ff3ca6aba71e3f8", |
| 48 |
"tarball": "https://registry.npmjs.org/isstream/-/isstream-0.0.0.tgz" |
| 49 |
}, |
| 50 |
"_from": ".", |
| 51 |
"_npmVersion": "1.4.3", |
| 52 |
"_npmUser": { |
| 53 |
"name": "rvagg", |
| 54 |
"email": "[email protected]" |
| 55 |
}, |
| 56 |
"maintainers": [ |
| 57 |
{ |
| 58 |
"name": "rvagg", |
| 59 |
"email": "[email protected]" |
| 60 |
} |
| 61 |
], |
| 62 |
"directories": {} |
| 63 |
}, |
| 64 |
"0.1.0": { |
| 65 |
"name": "isstream", |
| 66 |
"version": "0.1.0", |
| 67 |
"description": "Determine if an object is a Stream", |
| 68 |
"main": "isstream.js", |
| 69 |
"scripts": { |
| 70 |
"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.?/" |
| 71 |
}, |
| 72 |
"repository": { |
| 73 |
"type": "git", |
| 74 |
"url": "https://github.com/rvagg/isstream.git" |
| 75 |
}, |
| 76 |
"keywords": [ |
| 77 |
"stream", |
| 78 |
"type", |
| 79 |
"streams", |
| 80 |
"readable-stream", |
| 81 |
"hippo" |
| 82 |
], |
| 83 |
"devDependencies": { |
| 84 |
"tape": "~2.12.3", |
| 85 |
"core-util-is": "~1.0.0", |
| 86 |
"isarray": "0.0.1", |
| 87 |
"string_decoder": "~0.10.x", |
| 88 |
"inherits": "~2.0.1" |
| 89 |
}, |
| 90 |
"author": { |
| 91 |
"name": "Rod Vagg", |
| 92 |
"email": "[email protected]" |
| 93 |
}, |
| 94 |
"license": "MIT", |
| 95 |
"bugs": { |
| 96 |
"url": "https://github.com/rvagg/isstream/issues" |
| 97 |
}, |
| 98 |
"homepage": "https://github.com/rvagg/isstream", |
| 99 |
"_id": "[email protected]", |
| 100 |
"dist": { |
| 101 |
"shasum": "1fc062509b8c8902ee78d0a8d015ad3251472285", |
| 102 |
"tarball": "https://registry.npmjs.org/isstream/-/isstream-0.1.0.tgz" |
| 103 |
}, |
| 104 |
"_from": ".", |
| 105 |
"_npmVersion": "1.4.3", |
| 106 |
"_npmUser": { |
| 107 |
"name": "rvagg", |
| 108 |
"email": "[email protected]" |
| 109 |
}, |
| 110 |
"maintainers": [ |
| 111 |
{ |
| 112 |
"name": "rvagg", |
| 113 |
"email": "[email protected]" |
| 114 |
} |
| 115 |
], |
| 116 |
"directories": {} |
| 117 |
}, |
| 118 |
"0.1.1": { |
| 119 |
"name": "isstream", |
| 120 |
"version": "0.1.1", |
| 121 |
"description": "Determine if an object is a Stream", |
| 122 |
"main": "isstream.js", |
| 123 |
"scripts": { |
| 124 |
"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.?/" |
| 125 |
}, |
| 126 |
"repository": { |
| 127 |
"type": "git", |
| 128 |
"url": "https://github.com/rvagg/isstream.git" |
| 129 |
}, |
| 130 |
"keywords": [ |
| 131 |
"stream", |
| 132 |
"type", |
| 133 |
"streams", |
| 134 |
"readable-stream", |
| 135 |
"hippo" |
| 136 |
], |
| 137 |
"devDependencies": { |
| 138 |
"tape": "~2.12.3", |
| 139 |
"core-util-is": "~1.0.0", |
| 140 |
"isarray": "0.0.1", |
| 141 |
"string_decoder": "~0.10.x", |
| 142 |
"inherits": "~2.0.1" |
| 143 |
}, |
| 144 |
"author": { |
| 145 |
"name": "Rod Vagg", |
| 146 |
"email": "[email protected]" |
| 147 |
}, |
| 148 |
"license": "MIT", |
| 149 |
"bugs": { |
| 150 |
"url": "https://github.com/rvagg/isstream/issues" |
| 151 |
}, |
| 152 |
"homepage": "https://github.com/rvagg/isstream", |
| 153 |
"gitHead": "0406cfe2677231b7b23a229a61b15999bf60ce67", |
| 154 |
"_id": "[email protected]", |
| 155 |
"_shasum": "48332c5999893996ba253c81c7bd6e7ae0905c4f", |
| 156 |
"_from": ".", |
| 157 |
"_npmVersion": "1.4.28", |
| 158 |
"_npmUser": { |
| 159 |
"name": "rvagg", |
| 160 |
"email": "[email protected]" |
| 161 |
}, |
| 162 |
"maintainers": [ |
| 163 |
{ |
| 164 |
"name": "rvagg", |
| 165 |
"email": "[email protected]" |
| 166 |
} |
| 167 |
], |
| 168 |
"dist": { |
| 169 |
"shasum": "48332c5999893996ba253c81c7bd6e7ae0905c4f", |
| 170 |
"tarball": "https://registry.npmjs.org/isstream/-/isstream-0.1.1.tgz" |
| 171 |
}, |
| 172 |
"directories": {} |
| 173 |
}, |
| 174 |
"0.1.2": { |
| 175 |
"name": "isstream", |
| 176 |
"version": "0.1.2", |
| 177 |
"description": "Determine if an object is a Stream", |
| 178 |
"main": "isstream.js", |
| 179 |
"scripts": { |
| 180 |
"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.?/" |
| 181 |
}, |
| 182 |
"repository": { |
| 183 |
"type": "git", |
| 184 |
"url": "https://github.com/rvagg/isstream.git" |
| 185 |
}, |
| 186 |
"keywords": [ |
| 187 |
"stream", |
| 188 |
"type", |
| 189 |
"streams", |
| 190 |
"readable-stream", |
| 191 |
"hippo" |
| 192 |
], |
| 193 |
"devDependencies": { |
| 194 |
"tape": "~2.12.3", |
| 195 |
"core-util-is": "~1.0.0", |
| 196 |
"isarray": "0.0.1", |
| 197 |
"string_decoder": "~0.10.x", |
| 198 |
"inherits": "~2.0.1" |
| 199 |
}, |
| 200 |
"author": { |
| 201 |
"name": "Rod Vagg", |
| 202 |
"email": "[email protected]" |
| 203 |
}, |
| 204 |
"license": "MIT", |
| 205 |
"bugs": { |
| 206 |
"url": "https://github.com/rvagg/isstream/issues" |
| 207 |
}, |
| 208 |
"homepage": "https://github.com/rvagg/isstream", |
| 209 |
"gitHead": "cd39cba6da939b4fc9110825203adc506422c3dc", |
| 210 |
"_id": "[email protected]", |
| 211 |
"_shasum": "47e63f7af55afa6f92e1500e690eb8b8529c099a", |
| 212 |
"_from": ".", |
| 213 |
"_npmVersion": "2.6.1", |
| 214 |
"_nodeVersion": "1.4.3", |
| 215 |
"_npmUser": { |
| 216 |
"name": "rvagg", |
| 217 |
"email": "[email protected]" |
| 218 |
}, |
| 219 |
"maintainers": [ |
| 220 |
{ |
| 221 |
"name": "rvagg", |
| 222 |
"email": "[email protected]" |
| 223 |
} |
| 224 |
], |
| 225 |
"dist": { |
| 226 |
"shasum": "47e63f7af55afa6f92e1500e690eb8b8529c099a", |
| 227 |
"tarball": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" |
| 228 |
}, |
| 229 |
"directories": {} |
| 230 |
} |
| 231 |
}, |
| 232 |
"readme": "# isStream\n\n[](http://travis-ci.org/rvagg/isstream)\n\n**Test if an object is a `Stream`**\n\n[](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", |
| 233 |
"maintainers": [ |
| 234 |
{ |
| 235 |
"name": "rvagg", |
| 236 |
"email": "[email protected]" |
| 237 |
} |
| 238 |
], |
| 239 |
"time": { |
| 240 |
"modified": "2017-12-28T04:27:35.979Z", |
| 241 |
"created": "2014-04-07T00:03:04.615Z", |
| 242 |
"0.0.0": "2014-04-07T00:03:04.615Z", |
| 243 |
"0.1.0": "2014-04-07T00:38:39.891Z", |
| 244 |
"0.1.1": "2014-12-08T23:11:38.322Z", |
| 245 |
"0.1.2": "2015-03-07T00:15:15.512Z" |
| 246 |
}, |
| 247 |
"homepage": "https://github.com/rvagg/isstream", |
| 248 |
"keywords": [ |
| 249 |
"stream", |
| 250 |
"type", |
| 251 |
"streams", |
| 252 |
"readable-stream", |
| 253 |
"hippo" |
| 254 |
], |
| 255 |
"repository": { |
| 256 |
"type": "git", |
| 257 |
"url": "https://github.com/rvagg/isstream.git" |
| 258 |
}, |
| 259 |
"author": { |
| 260 |
"name": "Rod Vagg", |
| 261 |
"email": "[email protected]" |
| 262 |
}, |
| 263 |
"bugs": { |
| 264 |
"url": "https://github.com/rvagg/isstream/issues" |
| 265 |
}, |
| 266 |
"license": "MIT", |
| 267 |
"readmeFilename": "README.md", |
| 268 |
"users": { |
| 269 |
"wenbing": true, |
| 270 |
"antixrist": true, |
| 271 |
"leizongmin": true, |
| 272 |
"mojaray2k": true, |
| 273 |
"coolhanddev": true, |
| 274 |
"ganeshkbhat": true |
| 275 |
}, |
| 276 |
"_attachments": {} |
| 277 |
} |