1.3.3 • Published 6 years ago
fakenamegenerator v1.3.3
fakenamegenerator-api
Easily scrape data from fakenamegenerator.com
Syntax:
fng(gender, country, ageMin, ageMax, nameSound) //All parameters are optionalsUsage 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, orguyto get at 100% chances a man - Use
f,female,woman,girl, orladyto get at 100% chances a woman 20will generate a woman at 20% chance
- Use
- country:
- Use the country code (ex:
frto get a french address)
- Use the country code (ex:
- age:
ageMincorresponds to the minimum age of the generated personageMaxcorresponds to the maximum age of the generated person
- name sound:
- Use the country code (ex:
frto get a name that sound french)
- Use the country code (ex: