Skip to content

mattijs/grand

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grand is a node.js module for generating random data.

Usage

var grand = require('grand');

grand.number(exclusiveMax)    // A random, positive number less than the exclusiveMax
grand.integer(exclusiveMax)   // A random, positive integer less than the exclusiveMax
grand.uuid()                  // A random uuid (v4) using node-uuid and accepting the v4 parameters (optional)
grand.pick(array)             // A random item from the given array
grand.letter()                // A random letter [A-Za-z]
grand.wordChar()              // A random word character [A-Za-z0-9_]
grand.word(length)            // A random word from the system dictionary of the given length (optional)
grand.sentence(maxWords)      // A random sentence with the given number of words (optional)
grand.gender()                // Either "male" or "female"
grand.givenName(gender)       // A random given name for the given gender (optional)
grand.familyName()            // A random family name
grand.name(gender)            // A random full name of the given gender (optional)
grand.emailAddress()          // A random email address
grand.language(base)          // A random language and region for a given language (optional)
grand.timezone(continent)     // A random timezone on a continent (optional)

About

Generate random data in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%