Socket
Socket
Sign inDemoInstall

from2

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

from2 - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "from2",
"description": "Convenience wrapper for ReadableStream, with an API lifted from \"from\" and \"through2\"",
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -29,4 +29,2 @@ # from2 [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/from2&title=from2&description=hughsk/from2%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

module.exports = fromString
function fromString(string) {

@@ -36,3 +34,3 @@ return from(function(size, next) {

// left in the string, close the stream.
if (string.length <= 0) return cb(null, null)
if (string.length <= 0) return next(null, null)

@@ -39,0 +37,0 @@ // Pull in a new chunk of text,

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