1.1.8 • Published 4 years ago

fun-faker v1.1.8

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

fun-faker

make it fake but fun

Helpers

First & Last Name

// require module
const funFaker = require('./funFaker')
// helpers
const helpers = funFaker.helpers
// themes
const hp = funFaker.hp

// ramdom character
const randomCharacter = helpers.randomItem(hp.characters)
// first & last name
const firstName = helpers.fullName(randomCharacter)[0]
const lastName = helpers.fullName(randomCharacter)[1]

console.log(`First Name: ${firstName}`)
console.log(`Last Name: ${lastName}`)
/*
Result:
First Name: Vernon
Last Name: Dursley
*/

Job & Email

// require module
const funFaker = require('./funFaker')
// helpers
const helpers = funFaker.helpers
// themes
const hp = funFaker.hp
const medical = funFaker.medical

// ramdom character
const randomCharacter = helpers.randomItem(hp.characters)
// First Name: Vernon
// Last Name: Dursley

// asign job
const job = helpers.randomItem(medical.jobs)
// Job: Massage Therapist

// assign email
const email = helpers.userEmail(randomCharacter)
// Email: vdursley@email.com

Random address

// require module
const funFaker = require('./funFaker')
// require themes
const states = funFaker.states

const address = states.helpers.randomAddress()
console.log(address)
/* returns an addres object
{
  address1: '4016 Doane Street',
  address2: '',
  city: 'Fremont',
  state: 'CA',
  postalCode: '94538',
  coordinates: { lat: 37.514834, lng: -121.95302 },
  fullAddress: '4016 Doane Street Fremont CA 94538'
}
*/

Themes

Books

Harry Potter

  • characters
  • quotes
  • schools
  • Hogwarts Houses
  • dwellings
  • locations
  • wand ceremony

Shows

The Office

  • characters
  • quotes

Games

The Witcher

  • characters
  • quotes

Industries

Medical

  • conditions
  • jobs Tech
  • jobs
  • FAAANG companies

Standard stuff

Addresses

  • Zip codes by State
    • Oregon
  • 500 US valid addresses with coordinates (sourced from RRAD)
1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago