1.0.1 • Published 6 years ago

nonce-str v1.0.1

Weekly downloads
58
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage

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