diff options
Diffstat (limited to 'deps/npm/node_modules/JSONStream/bin.js')
-rwxr-xr-x | deps/npm/node_modules/JSONStream/bin.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/npm/node_modules/JSONStream/bin.js b/deps/npm/node_modules/JSONStream/bin.js new file mode 100755 index 0000000000..32209630f2 --- /dev/null +++ b/deps/npm/node_modules/JSONStream/bin.js @@ -0,0 +1,10 @@ +#! /usr/bin/env node + +var JSONStream = require('./') + +if(!module.parent && process.title !== 'browser') { + process.stdin + .pipe(JSONStream.parse(process.argv[2])) + .pipe(JSONStream.stringify('[', ',\n', ']\n', 2)) + .pipe(process.stdout) +} |