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

easy-json-stream

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-json-stream - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

index.js

@@ -9,4 +9,3 @@ var Transform = require('stream').Transform

Transform.call(this, { objectMode: true });
if (options.head)
this.push(options.head);
this.head = options.head;
this.tail = options.tail;

@@ -17,4 +16,4 @@ this.sep = options.sep || ',';

StringifyStream.prototype._transform = function(chunk, enc, next) {
if (!this.first)
this.push(this.sep);
if (!this.first) this.push(this.sep);
else if (this.head) this.push(this.head);
this.push(JSON.stringify(chunk));

@@ -21,0 +20,0 @@ this.first = false;

{
"name": "easy-json-stream",
"version": "1.0.1",
"version": "1.0.2",
"description": "Stream objects to JSON and JSON into objects.",

@@ -5,0 +5,0 @@ "main": "index.js",

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