This package has been deprecated

Author message:

unmaintained

base62.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i base62.js

Weekly Downloads

41

Version

1.0.0

License

MIT

Unpacked Size

36.3 kB

Total Files

18

Last publish

Collaborators

  • sasaplus1