randommongo

1.0.4 • Public • Published

RandomMongo

V1.0.4- Initial push

Example:

var randommongo = require('randommongo');
randommongo.populateRandomMongo();

-OR-

var randommongo = require('randommongo');
var count = 1000,
	options = {
		db: 'test',
		coll: 'MyColl',
		url: 'mongodb://127.0.0.1:27017/'
	}

randommongo.populateRandomMongo(count, options);

This will populate db: test, collection: RandomData with 100 random documents all with the same schema.

Random documents have 578 fields and are a combination of numeric, date and string formats. There are no embedded docs.

Readme

Keywords

Package Sidebar

Install

npm i randommongo

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • alainnisam