New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

invoice-any

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invoice-any

Generate Lightning Network invoices from Lightning addresses or LNURL

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

⚡ invoice-any

Generate Lightning Network invoices from Lightning addresses or LNURL with ease!

❓ What is it?

invoice-any is a lightweight Node.js package that allows you to generate Lightning Network invoices directly from a Lightning Address (e.g., username@domain.com) or an LNURL. It simplifies the process of interacting with the Lightning Network for payments.

📦 Installation

You can install the package using npm:

npm install invoice-any

🚀 How to use it?

💻 As a Library

Import the package into your project and use the getInvoice function.

const { getInvoice } = require('invoice-any');

const address = 'user@domain.com'; // Or an LNURL
const amountSats = 1000; // Amount in Satoshis

getInvoice(address, amountSats)
  .then(invoice => {
    console.log('⚡ Generated Invoice:', invoice);
  })
  .catch(error => {
    console.error('❌ Error:', error);
  });

⌨️ CLI Usage

You can also use it directly from the command line to generate invoices instantly.

Syntax:

get-invoice <lightning-address-or-lnurl> <amount-in-sats>

Example:

# Using npx (no installation needed)
npx invoice-any heyolaniran@blink.sv 500

# Or if installed globally
get-invoice legiblepower59@walletofsatoshi.com 500

✅ Supported Wallets

This package supports any wallet or service that implements the Lightning Address or LNURL protocol.

Some popular examples include:

  • Wallet of Satoshi
  • 🟠 Blink (Bitcoin Beach)
  • 🐝 Alby
  • 🦅 Phoenix (via LNURL)
  • 🟣 ZBD
  • And many others!

🛠 Dependencies

This package relies on the following dependencies:

  • bech32: Used for decoding LNURL strings. 🔗

ℹ️ Additional Information

  • License: MIT

Happy Hacking! 🚀

Keywords

lightning

FAQs

Package last updated on 20 Dec 2025

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