Socket
Socket
Sign inDemoInstall

json-stream-stringify

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-stream-stringify - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

4

jsonStreamify.js

@@ -84,2 +84,4 @@ 'use strict';

module.exports = JSONStreamify;
module.exports = function (obj) {
return new JSONStreamify(obj);
};
{
"name": "json-stream-stringify",
"version": "1.0.1",
"version": "1.1.0",
"description": "JSON.Stringify as a readable stream",

@@ -12,2 +12,3 @@ "repository": {

"devDependencies": {
"coveralls": "2.11.9",
"istanbul": "0.4.3",

@@ -14,0 +15,0 @@ "expect.js": "0.3.1",

@@ -24,3 +24,3 @@ # JSON Stream Stringify

new JSONStreamify({
JSONStreamify({
aPromise: Promise.resolve(Promise.resolve("text")), // Promise may resolve more promises and streams which will be consumed and resolved

@@ -72,2 +72,7 @@ aStream: ReadableObjectStream({a:1}, 'str'), // Stream may write more streams and promises which will be consumed and resolved

## Practical Express + Mongoose Example
```javascript
app.get('/api/users', (req, res, next) => JSONStreamify(Users.find().stream()).pipe(res));
```
## TODO

@@ -74,0 +79,0 @@ - Space option

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