nodejs-restful-jsonapi-seed
Version:
Everything you need to start building a scalable web application.
28 lines (23 loc) • 428 B
JavaScript
;
import Chance from 'chance';
/**
* Provides random data generation methods.
*
* @see http://chancejs.com
*
* @class
*/
class Random extends Chance {
/**
* Override string default options.
*
* @inheritdoc
*/
string(options = {length: 8, pool: 'abcdefghijklmnopqrstuvwxyz1234567890'}) {
return super.string(options);
}
}
/**
* @export default Random
*/
export default new Random();