LarpixClient/node_modules/JSONStream/bin.js
2026-05-03 17:09:55 +02:00

12 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)
}