secretive
v1.0.8
Published
Creates random, high entropy strings for app secrets
Downloads
13
Maintainers
Readme
#installation
$ npm install secrets
secret(length)
- Returns a random string, useful for key/secret generation.
- The length of the random string is controlled by the argument.
- On not passing the argument, the length is taken as 128.
randomize(max, min, [exceptions])
- Returns a random number (max and min included).
- First argument is the upper bound of the range.
- Second argument is the lower bound of the range.
- The numbers to be excluded from the range can be passed in an array, as the third argument.