npm install base62-randomGenerate random [base62 strings]
(https://helloacm.com/base62/)
with better
statistical dispersion
than Math.random() unless Math.random is all that's available.
Largely based on uuid-random
yarn add base62-random
npm install base62-random
``javascript`
var base62 = require('base62-random');
base62(12); // 'KsykHbcCzUSL'
`html`
`javascript``
base62.test('5HXx8Eznu0'); // true
base62.test('P-f6cA4e'); // false
MIT
- Based on https://github.com/jchook/uuid-random
- https://github.com/deployable/base62-random
- https://www.npmjs.com/package/base62-random