1.0.5 • Published 9 years ago

make-random-string v1.0.5

Weekly downloads
173
License
MIT
Repository
github
Last release
9 years ago

random-string

generate random string from custom charset (or the default one) and define the length of the string. Fantastic for when you need to generate a 'throw-away' id

Usage

var randomString = require('make-random-string')


// will output an alphanumeric string of with a length of 4, case-mixed
var x = randomString(4)

//will use custom charset - the string will only be made out of the passed arg

var x = randomString(4,'abcd1234')

========================

for you sexy coffeeScript folks:

randomString = require 'make-random-string'


###will output an alphanumeric string of with a length of 4, case-mixed###
x = randomString 4

#$ xJe3

###will use custom charset - the string will only be made out of the passed arg###

x = randomString 4,'abcd1234'

#$ ad2d
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago