mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 01:16:00 +00:00
Modules
This commit is contained in:
4
node_modules/is-stream-ended/index.d.ts
generated
vendored
Normal file
4
node_modules/is-stream-ended/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { Stream } from 'stream';
|
||||
declare function isStreamEnded(stream: Stream): boolean;
|
||||
declare namespace isStreamEnded {}
|
||||
export = isStreamEnded;
|
13
node_modules/is-stream-ended/index.js
generated
vendored
Normal file
13
node_modules/is-stream-ended/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (stream) {
|
||||
var ended;
|
||||
|
||||
if (typeof stream.ended !== 'undefined') {
|
||||
ended = stream.ended;
|
||||
} else {
|
||||
ended = stream._readableState.ended;
|
||||
}
|
||||
|
||||
return Boolean(ended).valueOf();
|
||||
};
|
20
node_modules/is-stream-ended/license
generated
vendored
Normal file
20
node_modules/is-stream-ended/license
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Stephen Sawchuk
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
68
node_modules/is-stream-ended/package.json
generated
vendored
Normal file
68
node_modules/is-stream-ended/package.json
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-stream-ended@0.1.4",
|
||||
"C:\\Users\\matia\\Musix"
|
||||
]
|
||||
],
|
||||
"_from": "is-stream-ended@0.1.4",
|
||||
"_id": "is-stream-ended@0.1.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
|
||||
"_location": "/is-stream-ended",
|
||||
"_optional": true,
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-stream-ended@0.1.4",
|
||||
"name": "is-stream-ended",
|
||||
"escapedName": "is-stream-ended",
|
||||
"rawSpec": "0.1.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.1.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/google-gax"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz",
|
||||
"_spec": "0.1.4",
|
||||
"_where": "C:\\Users\\matia\\Musix",
|
||||
"author": {
|
||||
"name": "Stephen Sawchuk",
|
||||
"email": "sawchuk@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stephenplusplus/is-stream-ended/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Check if a stream has ended",
|
||||
"devDependencies": {
|
||||
"mocha": "^2.2.5",
|
||||
"through2": "^2.0.3"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/stephenplusplus/is-stream-ended#readme",
|
||||
"keywords": [
|
||||
"stream",
|
||||
"end",
|
||||
"ended",
|
||||
"consumed",
|
||||
"complete"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-stream-ended",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stephenplusplus/is-stream-ended.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "0.1.4"
|
||||
}
|
21
node_modules/is-stream-ended/readme.md
generated
vendored
Normal file
21
node_modules/is-stream-ended/readme.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# is-stream-ended
|
||||
> Check if a stream has ended.
|
||||
|
||||
```sh
|
||||
$ npm install --save is-stream-ended
|
||||
```
|
||||
```js
|
||||
var isStreamEnded = require('is-stream-ended');
|
||||
|
||||
isStreamEnded(stream); // false
|
||||
stream.end();
|
||||
isStreamEnded(stream); // true
|
||||
```
|
||||
|
||||
### isStreamEnded(stream)
|
||||
|
||||
#### stream
|
||||
|
||||
- Type: `Stream`, `Object`
|
||||
|
||||
Providing a stream will check against the `stream._readableState` object. To check from the `_writableState`, provide that object directly.
|
Reference in New Issue
Block a user