stream-stringify
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -95,3 +95,8 @@ // Generated by CoffeeScript 1.9.2 | ||
case 'object': | ||
return JSON.stringify(data); | ||
if (this.prettyFormat) { | ||
return JSON.stringify(data, null, this.tabWidth); | ||
} else { | ||
return JSON.stringify(data); | ||
} | ||
break; | ||
default: | ||
@@ -98,0 +103,0 @@ return data; |
{ | ||
"name": "stream-stringify", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Stringify nested JSON through streams.", | ||
@@ -5,0 +5,0 @@ "main": "lib/stream-stringify.js", |
Create streams for nested JSON structures of which you don't know about on beforehand. | ||
Cheaper than `JSON.stringify` which always will buffer the entire object. | ||
Cheaper than `JSON.stringify` which always will buffers the entire object. | ||
@@ -5,0 +5,0 @@ # Example |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28289
258