Nationwide Polamorous Matrimony

    persona-generator

    1.4.1 • Public • Published

    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: 'brianamartinez@personagenerator.com',
      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

    Install

    npm i persona-generator

    DownloadsWeekly Downloads

    92

    Version

    1.4.1

    License

    ISC

    Unpacked Size

    4.46 MB

    Total Files

    15

    Last publish

    Collaborators

    • surfingpikachu