webroo / dummy-json

Generates random dummy JSON data in Node.js
MIT License
380 stars 61 forks source link

Stream output #15

Open lastlegion opened 7 years ago

lastlegion commented 7 years ago

Would be nice to be able to get a streamed output of the json. Would be useful for large arrays.

webroo commented 7 years ago

Nice idea. Dummy-json is just a collection of helpers for Handlebars though, and I don't think Handlebars natively support streams. However a quick search throws up a few libraries that add streaming support so perhaps I could utilise them instead. I'll add it to my todo list as a future enhancement. In the meantime I'll keep this issue open in case anyone else wants to weigh in :)