This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
-1
View File
@@ -1,4 +1,3 @@
/// <reference types="node"/>
import * as stream from 'stream';
declare const isStream: {
+1 -2
View File
@@ -23,7 +23,6 @@ isStream.duplex = stream =>
isStream.transform = stream =>
isStream.duplex(stream) &&
typeof stream._transform === 'function' &&
typeof stream._transformState === 'object';
typeof stream._transform === 'function';
module.exports = isStream;
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
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:
+14 -13
View File
@@ -1,36 +1,36 @@
{
"_args": [
[
"is-stream@2.0.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"is-stream@2.0.1",
"/home/node/nuxt"
]
],
"_from": "is-stream@2.0.0",
"_id": "is-stream@2.0.0",
"_from": "is-stream@2.0.1",
"_id": "is-stream@2.0.1",
"_inBundle": false,
"_integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
"_integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
"_location": "/is-stream",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-stream@2.0.0",
"raw": "is-stream@2.0.1",
"name": "is-stream",
"escapedName": "is-stream",
"rawSpec": "2.0.0",
"rawSpec": "2.0.1",
"saveSpec": null,
"fetchSpec": "2.0.0"
"fetchSpec": "2.0.1"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"_spec": "2.0.1",
"_where": "/home/node/nuxt",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/is-stream/issues"
@@ -50,6 +50,7 @@
"index.js",
"index.d.ts"
],
"funding": "https://github.com/sponsors/sindresorhus",
"homepage": "https://github.com/sindresorhus/is-stream#readme",
"keywords": [
"stream",
@@ -72,5 +73,5 @@
"scripts": {
"test": "xo && ava && tsd"
},
"version": "2.0.0"
"version": "2.0.1"
}
+11 -8
View File
@@ -1,15 +1,13 @@
# is-stream [![Build Status](https://travis-ci.org/sindresorhus/is-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/is-stream)
# is-stream
> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html)
## Install
```
$ npm install is-stream
```
## Usage
```js
@@ -23,7 +21,6 @@ isStream({});
//=> false
```
## API
### isStream(stream)
@@ -46,12 +43,18 @@ Returns a `boolean` for whether it's a [`stream.Duplex`](https://nodejs.org/api/
Returns a `boolean` for whether it's a [`stream.Transform`](https://nodejs.org/api/stream.html#stream_class_stream_transform).
## Related
- [is-file-stream](https://github.com/jamestalmage/is-file-stream) - Detect if a stream is a file stream
---
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-is-stream?utm_source=npm-is-stream&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>