mokkr
v0.0.2
Published
Need some mock data?
Downloads
60
Readme
🎲 Mokkr
Summary
- :tada: 0 dependencies,
~4kb
- :innocent: Minimal API
About
Need some mock data?
This tiny ~4kb lib should have you covered for the most basic things.
If you need some bigger guns, there are more mature libs out there :-)
Setup
$ npm i mokkr
import mokkr from 'mokkr'
const random = mokkr.random()
console.log(random)
Will generate:
{
gender: 'male',
firstName: 'Christian',
surName: 'Brown',
email: '[email protected]',
pass: 'T@Ny5zjsTU'
}
API
const gender = mokkr.maleOrFemale()
const firstName = mokkr.firstName(gender)
const surName = mokkr.surName()
const email = mokkr.email(firstName, surName)
const pass = mokkr.password()
// or if you want em' all
const random = mokkr.random()
MIT License
Licensed under the MIT License