Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.23 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.23 KB

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