1.0.2 • Published 7 years ago

js-randstr v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

#js-randstr Simple library to generate random strings

##Installation using npm

npm install js-randstr

using bower

bower install js-randstr

##Usage For nodejs

var randstr = require('js-randstr');

// Generate random string of length 6
randstr(6);

// Generate random string with specified charset
randstr(8, 'abcd');

For browser

<script src="bower_components/js-randstr/lib/randstr.js"></script>
<script>
// Generate random string of length 6
randstr(6);

// Generate random string with specified charset
randstr(8, 'abcd');
</script>

##Tests

# install dev dependencies
npm install

# run tests
npm test
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago