fake-product-generator
Streaming fake product generator for testing
Install
npm i fake-product-generator
Use
const FPG = const rs = rs
Since FPG
returns a readable stream you can also pipe
to a write stream.
const fs = const FPG = const rs = // creates a million products!const ws = fsrs
This is great for creating a ton of sample json without the process crashing because you aren't keeping the entire thing in memory, but just each readable chunk.