madlibs

string based fake data

npm install madlibs
2 downloads in the last week
5 downloads in the last month

madlibs

Generate random words and phrases: names, places, numbers, etc.

This is a rewrite of Faker.js with a saner API and simpler implementation. It also incorporates new word lists for nouns, verbs, etc.

Test

To see example output, run npm test:

                       action - laugh
                    adjective - patient
                       animal - Ostritch
                   cityPrefix - Port
                   citySuffix - mouth
                        color - Orange
                companySuffix - Inc
              expenseCategory - Maintenance and repairs
                    firstName - Rahul
                     lastName - Dickinson
                        lorem - et
                   namePrefix - Miss
                   nameSuffix - IV
                         noun - slope
                   sportsgame - Skiing
                 streetSuffix - Neck
                          tld - tv
               transportation - Bus
                      usState - Washington
                  usStateAbbr - CO
                         verb - sit
                     fullName - Jany Haley
                     username - heaven-bergstrom
                        email - jillian-braun@sherwood.info
                       gender - Male
                 genderLetter - f
                   streetName - Marian Drive
                      address - 981 Freddy Drives
                     address2 - Apt.
                         city - Keyon side
                      zipCode - 69174-6035
                     latitude - -61.6590
                    longitude - -128.9762
                      company - Kulas Inc
                   domainName - francisca.biz
                           ip - 61.221.166.124
                          ip6 - 2a84:87a7:93b5:0f75:3c75:120b:a1f7:d530
                  phoneNumber - 1-393-202-8584 x9465
                          ssn - 227-07-9514
                   creditCard - 0920-0258-7732-7376

Roadmap

  • Work in browser via component.js
  • Generate words, sentances, paragraphs (a-la faker)
  • Simple templating / interpolation, so it can actually be used for MadLibs

Based On

License

MIT

npm loves you