@quentinadam/base58
v0.1.5
Published
A simple library to encode and decode base58 strings
Downloads
139
Readme
@quentinadam/base58
A simple library to encode and decode base58 strings.
Optionnaly supports specifying the alphabet to use.
Usage
import * as base58 from '@quentinadam/base58';
base58.encode(new Uint8Array([72, 101, 108, 108, 111])); // returns '9Ajdvzr'
base58.decode('9Ajdvzr'); // returns Uint8Array([72, 101, 108, 108, 111])