JSPM

light-bolt12-decoder

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 117
  • Score
    100M100P100Q77487F
  • License MIT

decode lightning invoices without overhead (doesn't check signatures).

Package Exports

  • light-bolt12-decoder
  • light-bolt12-decoder/bolt12.js

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 (light-bolt12-decoder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Light BOLT12 Decoder

A lightweight and naïve library for decoding lightning network payment requests as defined in BOLT #12.

Code derived from bolt12, which has the full functionality but it's a pain to run in browsers.

Spits out "sections" of the invoice, in a way that is used to make visualizations like https://bolt12.org/.

The dependencies are minimal: no Buffer, only @scure/base.

Installation

yarn add light-bolt12-decoder