json-testdata

Supplies a range of useful json data for testing.

json-testdata

A range of different test JSON test data sources for use in database testing.

Install via npm:

$ npm install json-testdata

Just require the module to get a big array of JSON test data sources from npm:

var db = levelup('mydb', { valueEncoding: 'json' });
var testData = require('json-testdata');
var batch = testData.map(function (datai) {
  return {
    type: 'put',
    key: i,
    value: data
  };
});
db.batch(batch);

Do the above stuff for you:

var db = levelup('mydb', { valueEncoding: 'json' });
var batch = require('json-testdata').leveldata;
db.batch(batch);