A modern base58-check encoding library implemented in TypeScript with minimal dependencies for use in browser and Node.js.
import { encode, decode } from '@web3pack/base58-check';
const message = Buffer.from('hello world');
const encodedText = encode(message);
// => '3vQB7B6MrGQZaxCuFg4oh'
const decodedText = decode(encodedText).toString();
// => 'hello world'