fakenamegenerator
v1.3.3
Published
Easily scrape data from fakenamegenerator.com
Downloads
5
Maintainers
Readme
fakenamegenerator-api
Easily scrape data from fakenamegenerator.com
Syntax:
fng(gender, country, ageMin, ageMax, nameSound) //All parameters are optionals
Usage examples:
const fng = require('fakenamegenerator')
//Get a random person
fng().then(result => {
console.log(result)
})
//Get a random female person
fng('f').then(result => {
console.log(result)
})
//Get a random person who has a 20% chance of being a woman, who lives in France,
//who is between 23 and 45 years old, and who has a name that sounds French
fng(20, 'fr', 23, 45, 'fr').then(result => {
console.log(result) })
Usage details:
- gender:
- Use
m
,male
,man
,boy
, orguy
to get at 100% chances a man - Use
f
,female
,woman
,girl
, orlady
to get at 100% chances a woman 20
will generate a woman at 20% chance
- Use
- country:
- Use the country code (ex:
fr
to get a french address)
- Use the country code (ex:
- age:
ageMin
corresponds to the minimum age of the generated personageMax
corresponds to the maximum age of the generated person
- name sound:
- Use the country code (ex:
fr
to get a name that sound french)
- Use the country code (ex: