Generate random words and phrases: names, places, numbers, etc.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dict
.gitignore
.jshintrc
Readme.md
index.js
package.json
test.js

Readme.md

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.

Installation

npm install madlibs

Usage

var madlibs = require('madlibs')
madlibs.noun()
madlibs.verb()
madlibs.fullName()
madlibs.email()
madlibs.address()

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 full example objects: user, company, etc.
  • Generate words, sentances, paragraphs (a-la faker)
  • Simple templating / interpolation, so it can actually be used for MadLibs

Based On

License

MIT