mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 21:27:14 +00:00

PR-URL: https://github.com/nodejs/node/pull/30533 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
13 lines
251 B
JavaScript
Executable File
13 lines
251 B
JavaScript
Executable File
#! /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)
|
|
}
|
|
|
|
|