🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

grand

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grand

Generate random data

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
12
-20%
Maintainers
1
Weekly downloads
 
Created
Source

npm package build status dependency status code climate

grand is a JavaScript module for generating random data.

Usage

var grand = require('grand');

grand.number(exclusiveMax)    // A random, positive number less than the exclusiveMax (optional)
grand.integer(exclusiveMax)   // A random, positive integer less than the exclusiveMax (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.locale(language)        // A random locale for a given language (optional)
grand.timezone(region)        // A random timezone on a region (optional)

Installation

Using npm:

$ npm install grand

Issues

Please file issues on the issue tracker on GitHub.

Tests

To run the tests in node:

$ npm install
$ npm test

License

MIT

Keywords

generate

FAQs

Package last updated on 19 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts