Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@darkwolf/base58

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkwolf/base58

Base58

  • 21.13.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

Base58

Install

npm i --save @darkwolf/base58

Using

⚠️ Requires Node.js v12.x LTS or higher to use!
import Base58, { Alphabet } from '@darkwolf/base58'

const encoded = Base58.encode('Ave, Darkwolf!') // HDmiyDYm3PDiZ4kmjkb
Base58.decode(encoded) // 'Ave, Darkwolf!'
const encodedInteger = Base58.encodeInteger(10000) // eyH
Base58.decodeInteger(encodedInteger) // 10000
// Custom alphabet
const btc = new Base58(Alphabet.BITCOIN)
const encodedBtc = btc.encode('Ave, Darkwolf!') // R4qoy4gqDX4ohE7qp7i
btc.decode(encodedBtc) // 'Ave, Darkwolf!'
const encodedBtcInteger = btc.encodeInteger(10000) // 3yR
btc.decodeInteger(encodedBtcInteger) // 10000

API Documentation

Donate

You can contribute to the development of open source projects by making your donation 🐺
Bitcoin (BTC): 15sjjAUtJdB1ncsxKK7KtyJPtF46UhXWo4
Ethereum (ETH): 0xF02F68eb33E9eC73b8E9c3c0953E6782E2376867
Bitcoin Cash (BCH): qq6h3a78h3wlt04eyp9ydht94r6guzjdps9hqwgfzw

Contact Me

GitHub: @PavelWolfDark
Telegram: @PavelWolfDark
Email: PavelWolfDark@gmail.com

Keywords

FAQs

Package last updated on 01 Oct 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc