JSPM

base-58

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11174
  • Score
    100M100P100Q124795F

Base58 encoding & decoding for Node.js & web agent windows.

Package Exports

  • base-58

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-58) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Base58 in a window

Get Base58.js and add it to your web page with a script tag:

<script src="Base58.js" charset="utf-8"></script>

window.Base58 is defined when the script is executed. There are two methods:

Base58.encode(a Uint8Array) returns a String
Base58.decode(a String) returns a Uint8Array

Base58 in Node.js

Run npm install base-58 to add the module to your package. Require it in your program with Base58 = require("base-58"). Again, there are two methods:

Base58.encode(a Buffer or Uint8Array) returns a String
Base58.decode(a String) returns a Buffer

Credits