mokkr

0.0.2 • Public • Published

🎲 Mokkr

Summary

  • 🎉 0 dependencies, ~4kb
  • 😇 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: 'christian_brown@yahoo.com',
  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

Cheers

Readme

Keywords

Package Sidebar

Install

npm i mokkr

Weekly Downloads

9

Version

0.0.2

License

MIT

Unpacked Size

16.6 kB

Total Files

6

Last publish

Collaborators

  • imlinus