1.0.0 • Published 5 years ago

base62.js v1.0.0

Weekly downloads
75
License
MIT
Repository
github
Last release
5 years ago

base62.js

test npm version Try base62.js on RunKit renovate

base62 encode/decode library

Installation

npm

$ npm install base62.js

yarn

$ yarn add base62.js

Usage

node.js

const base62 = require('base62.js');

browser

<script src="base62.min.js"></script>

Example

base62.encode(39134); // "abc"
base62.decode('abc'); // 39134

const originalTable = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';

base62.encode(39134, originalTable); // "ABC"
base62.decode('ABC', originalTable); // 39134

Functions

see documents

License

The MIT license.

1.0.0

5 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

11 years ago