Encode a string into a base62 string. Decode a base62 string back to a decoded string. It can also code arrays of bytes.
npm install base62strjavascript
import Base62Str from "base62str";
`
If you want to use the library in nodejs then use require as follows:
`javascript
const Base62Str = require("base62str").default;
`
To use
$3
First create an instance:
`javascript
const base62 = Base62Str.createInstance();
`
If you prefer you can create an instance with inverted CharacterSet:
`javascript
const base62 = Base62Str.createInstanceWithInvertedCharacterSet();
`
$3
`javascript
const encodedString = base62.encodeStr("Hello World!");
// encodedString => T8dgcjRGkZ3aysdN
`
$3
`javascript
const decodedString = base62.decodeStr(encodedString);
// decodedString => Hello World!
``