bin.js 251 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 #! /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) }