Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-readable-stream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-readable-stream - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

index.d.ts

9

index.js
'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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc