Duplex stream which takes objects, pushes them into process stdin as ndjson,
takes ndjson from the process, and returns objects. It's like a through stream
for processes. Meant as a convenience module for when you want to compute on
JSONs from an external process. Comes with hello world examples from several
languages (TODO). Exposes the underlying child process from
const ndjsonProcess =const intoStream =const data =foo: 1foo: 2foo: 3foo: 4foo: 5
TODO Node, R, Go, ...
TODO a way without
while True that doesn't have to wait for EOF from stdin?
#!/usr/bin/env pythonimport sysimport json*= 2return objtry:buff = 'while True:buff +=if :results =print()buff = 'except KeyboardInterrupt:pass