persona-generator
v1.4.1
Published
a simple tool to generate random personas.
Downloads
4
Maintainers
Readme
persona-generator
a simple tool to generate random personas.
var Persona = require("persona-generator");
var persona = new Persona()
persona.generate(4) // takes an argument for how many to generate
simple
var Persona = require("persona-generator");
var persona = new Persona()
console.log(persona.generate())
/*
{
firstname: 'Briana',
lastname: 'Martinez',
fullname: 'Briana Martinez',
birthday: 'Apr 18 2001',
email: '[email protected]',
usernames: [
'brianamartinez',
'briana_martinez',
'brianamartinez303',
'brianamartinez_303',
'briana_martinez303',
'briana_martinez_303'
]
}
*/
advanced
customize some of the settings of the generator
var Persona = require("persona-generator");
var persona = new Persona({
firstnamelist: "./lists/firstname_american.txt",
lastnamelist: "./lists/lastname_american.txt",
emailDomain: "easybiscuitrecipe.com",
randomBirthday: true,
startDate: "1985, 1, 1",
endDate: "2004, 1, 1",
randomNum: true,
digits: 3,
save: true,
})
persona.generate()
TODO
- add alea number generator that works off seeds
- add ability to add custom name sets
- add default name lists/databases
- add bio generator based on GPT3 or something