This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

pd-redis-record-field-randomize

0.1.0 • Public • Published

pd-redis-record-field-randomize

To enable pd-redis-record model creating records with fields of random strings

var Message = modelMaker('message', ['id']);
randomize(Message, ['id']);

Message.create({
  content : 'Hello'
}).then(function(profile){
  //profile => { id: '4yQS-8_b', content : 'Hello' }
  // id generated a random string (not necessarily be '4yQS-8_b')
});

Dependents (0)

Package Sidebar

Install

npm i pd-redis-record-field-randomize

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jszhengyq