Socket
Book a DemoInstallSign in
Socket

base58encoder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base58encoder

base 58 encoder and decoder

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

base58encoder

Build Status

Base 58 encoding and decoding with String using Flickr Alphabet (see Wikipedia article)

installation

$ npm install base58encoder

Usage

const encoder = require('base58encoder');

// encode
console.log(encoder.encode('1000456987'));
// 3LhmXSzSZVxzU4

// decode
console.log(encoder.decode('3LhmXSzSZVxzU4'));
// 1000456987

// encode
console.log(encoder.encode('var=умартах'));
// 5UMuUcfmjqiNQeBakyNGpzAqV

// decode
console.log(encoder.decode('5UMuUcfmjqiNQeBakyNGpzAqV'));
// var=умартах

Resources

uses base-x initialized with ALPHABET = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';

Licensing

Licensed under the MIT License

A copy of the license is available in the repository's LICENSE file.

Keywords

base58

FAQs

Package last updated on 02 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts