to-readable-stream
Advanced tools
Comparing version 1.0.0 to 2.0.0
'use strict'; | ||
const {Readable} = require('stream'); | ||
const {Readable: ReadableStream} = require('stream'); | ||
module.exports = input => ( | ||
new Readable({ | ||
const toReadableStream = input => ( | ||
new ReadableStream({ | ||
read() { | ||
@@ -12,1 +12,4 @@ this.push(input); | ||
); | ||
module.exports = toReadableStream; | ||
module.exports.default = toReadableStream; |
{ | ||
"name": "to-readable-stream", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Convert a string/Buffer/Uint8Array to a readable stream", | ||
@@ -13,9 +13,10 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd-check" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -37,6 +38,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"get-stream": "^3.0.0", | ||
"xo": "*" | ||
"ava": "^1.3.1", | ||
"get-stream": "^4.1.0", | ||
"tsd-check": "^0.3.0", | ||
"xo": "^0.24.0" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3330
5
22
0
4