0.1.1 • Published 6 years ago

base58-random v0.1.1

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

base58-random

Generate random base58 strings quickly with better statistical dispersion than Math.random() unless Math.random is all that's available.

Largely based on uuid-random

Install

yarn add base58-random
npm install base58-random

Example Usage

Node

var base58 = require('base58-random');
base58(12); // 'KsykHbcCzUSL'

Browser

<script src="https://cdn.rawgit.com/deployable/base58-random/v0.1.0/base58-random.min.js"></script>
<script>
  base58(13); // 'BAho2V4BfUmo3'
</script>

Is base58 string?

base58.test('4rhdLsp32qn'); // true
base58.test('5HXx8Eznu0'); // false
base58.test('P-f6cA4e'); // false

License

MIT

Links

0.1.1

6 years ago

0.1.0

6 years ago

0.1.0-1

6 years ago