MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / jsonStringifyStream

Function jsonStringifyStream

app/util/streams.js:22–27  ·  view source on GitHub ↗

* Returns a stream transform that calls JSON.stringify * on objects passing through * @return {stream.Transform} the stream transform

()

Source from the content-addressed store, hash-verified

20 * @return {stream.Transform} the stream transform
21 */
22function jsonStringifyStream() {
23 return Through.obj(function (obj, _, cb) {
24 this.push(JSON.stringify(obj));
25 cb();
26 });
27}
28
29/**
30 * Sets up stream multiplexing for the given stream

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected