@trenskow/stream-reader 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/package.json +3 -3
- package/test.js +0 -13
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ A simple promise to read the content of a stream in Node.js.
|
|
|
6
6
|
# Usage
|
|
7
7
|
|
|
8
8
|
````javascript
|
|
9
|
-
|
|
9
|
+
import streamReader from '@trenskow/stream-reader';
|
|
10
10
|
|
|
11
11
|
const buffer = await streamReader(someStream);
|
|
12
12
|
````
|
|
@@ -14,4 +14,3 @@ const buffer = await streamReader(someStream);
|
|
|
14
14
|
# LICENSE
|
|
15
15
|
|
|
16
16
|
See LICENSE
|
|
17
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/stream-reader",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "A simple promise to read the content of a stream in Node.js.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"homepage": "https://github.com/trenskow/stream-reader#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@eslint/eslintrc": "^3.3.3",
|
|
27
|
-
"@eslint/js": "^
|
|
28
|
-
"eslint": "^
|
|
27
|
+
"@eslint/js": "^10.0.1",
|
|
28
|
+
"eslint": "^10.0.0",
|
|
29
29
|
"globals": "^17.3.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/test.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import streamReader from './index.js';
|
|
2
|
-
import { PassThrough } from 'stream';
|
|
3
|
-
|
|
4
|
-
const stream = new PassThrough();
|
|
5
|
-
|
|
6
|
-
stream.write('Hello, World!');
|
|
7
|
-
|
|
8
|
-
stream.end();
|
|
9
|
-
|
|
10
|
-
streamReader(stream)
|
|
11
|
-
.then((result) => result.toString('utf-8'))
|
|
12
|
-
.then(console.info);
|
|
13
|
-
|