Skip to content

kaelzhang/node-nonce-str

Repository files navigation

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

About

Generate a nonce string.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published