base58-random
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/base58-random package

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i base58-random

Weekly Downloads

109

Version

0.1.1

License

MIT

Unpacked Size

55.8 kB

Total Files

13

Last publish

Collaborators

  • deployable