randomstring-ng

A module for generating random strings

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
randomstring-ng
1.0.57 years ago7 years agoMinified + gzip package size for randomstring-ng in KB

Readme

node-randomstring Build Status

Installation

To install randomstring, use npm:
npm install randomstring-ng --save

Usage

var randomstring = require("randomstring-ng");

randomstring.generate();
// >> "XwPp9xazJ0ku5CZnlmgAx2Dld8SHkAeT"

randomstring.generate(7);
// >> "xqm5wXX"

randomstring.generate(9, "0123456789abcdefghiklmnopqrstuvwxyz");
// >> "hf752sd9j"

Tests

npm install
npm test

Command Line Usage

$ npm install -g randomstring-ng

$ randomstring
sKCx49VgtHZ59bJOTLcU0Gr06ogUnDJi

$ randomstring 7
CpMg433

LICENSE

node-randomstring is licensed under the MIT license.