The easiest parser for JSON, XML, CSV and YAML. Use it as simple as JSON.stringify() or JSON.parse(). All in one place. parser data-parser stream stream-parser streaming-parser csv-parser csv-parser-stream csv-stringify csv-stringify-stream transform-csv csv-streaming csv yaml-parser yaml...
constfastJson=require('fast-json-stringify')constStream=require('stream');constschema={title:'Example Schema',type:'object',properties:{foo:{type:'string'}}conststringify=fastJson(schema,{enableStream:true})app.get('/',function(req,res){constdata={foo:'bar'}res.type('json');consts=newStream...
constjson=require('big-json');conststringifyStream=json.createStringifyStream({body:BIG_POJO});stringifyStream.on('data',function(strChunk){// => BIG_POJO will be sent out in JSON chunks as the object is traversed}); API createParseStream() ...
const fastJson = require('fast-json-stringify') const schema = { title: 'Example Schema', type: 'object', properties: { foo: { type: 'string' } } const stringify = fastJson(schema, { enableStream: true }) const data = { foo: 'bar' } const stream = new Readable() stringify(data...
poc-stream-first-commit … cesco69 committed Apr 12, 2024 Verified de8e3e3 Update index.js … cesco69 committed Apr 12, 2024 Verified d3b28b2 fix some test case … cesco69 committed Apr 12, 2024 Verified f9f87c3 fix all test … cesco69 committed Apr 12, 2024 Verified...