1.0.1 • Published 6 years ago
nonce-str v1.0.1
nonce-str
Generate a nonce str.
Install
$ npm i nonce-str
nonce(length = 32, chars = nonce.CHARS)
Returns String
import nonce, {CHARS} from 'nonce-str'
nonce(32)
// mq3GTllnJ0tMxLGeV0EoO8ZDIOjQX6td
console.log(CHARS)
// ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
License
MIT