json-testdata
A range of different test JSON test data sources for use in database testing.
Installation
Install via npm:
$ npm install json-testdata
Usage
Just an array of JSON data
Just require the module to get a big array of JSON test data sources from npm:
var db = ;var testData = data;var batch = testData;db;
An array of levelup data:
Do the above stuff for you:
var db = ;var batch = leveldata;db;
A stream of JSON data
You can get the data as a stream too:
;
If you want to put a delay between each data
event, then you can pass that
through the readStream function:
// 50ms delay between data events;