You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
251 B
12 lines
251 B
#! /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)
|
|
}
|
|
|
|
|
|
|