@noeldemartin/faker
Version:
Generate massive amounts of fake contextual data
2 lines (1 loc) • 1.14 kB
JavaScript
;var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of f(e))!h.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(s=o(e,a))||s.enumerable});return r};var p=r=>c(n({},"__esModule",{value:!0}),r);var d={};l(d,{DatabaseModule:()=>i});module.exports=p(d);class i{constructor(e){this.faker=e;for(const t of Object.getOwnPropertyNames(i.prototype))t==="constructor"||typeof this[t]!="function"||(this[t]=this[t].bind(this))}column(){return this.faker.helpers.arrayElement(this.faker.definitions.database.column)}type(){return this.faker.helpers.arrayElement(this.faker.definitions.database.type)}collation(){return this.faker.helpers.arrayElement(this.faker.definitions.database.collation)}engine(){return this.faker.helpers.arrayElement(this.faker.definitions.database.engine)}mongodbObjectId(){return this.faker.datatype.hexadecimal({length:24,case:"lower",prefix:""})}}0&&(module.exports={DatabaseModule});