string_generator

1.0.1 • Public • Published

StringGenerator

A nodeJS modules for generating random strings

Installation

TO install string generator, use npm:

npm install string_generator

Usage

var string_gen = require("string_generator);

string_gen.genString(options); // Generate 1 random string
string_gen.genStrings(amount, options); //Generate (amount) random string
string_gen.defaultValues ={
    "length": 32,
    "lowerCase": true,
    "upperCase": false,
    "numbers": false,
    "specialChar": false,
    "readable": false,
    "exclude": []
};

## Options

  • length - (int) the length of the random string.
  • lowerCase - (boolean) will the string contain lower case characters
  • upperCase - (boolean) will the string contain upper case characters
  • numbers - (boolean) will the string contain numbers
  • specialChar - (boolean) will the string contian speical characters
  • readable - (boolean) will the string contain iIlLoO0
  • exclude - (array) what characters are to be excluded from the string

Package Sidebar

Install

npm i string_generator

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • zedxt