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

lnd-binary

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lnd-binary

Download the latest lnd binary

  • 0.3.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

lnd-binary

standard-readme compliant Dependency Status Build Status

install lnd from npm https://github.com/lightningnetwork/lnd ⚡️

This package will download and install a precompiled lnd binary. The installed binary is verified against the official lnd binary checksums to ensure its integrity.

By default, the latest supported lnd release for your platform/architecture will be installed. Alternatively, a specific version can be specified using the configuration options below.

The lnd binary gets installed into the vendor directory inside the module folder and symlinked into your node bin directory.

Table of Contents

Install

npm install lnd-binary --save

Usage

> npm install lnd-binary
> npx lnd --version
lnd version 0.4.2-beta

Configuration

lnd-binary supports different configuration parameters to change settings related to the lnd binary such as binary name, binary path or alternative download path. Following parameters are supported by lnd-binary:

Variable namepackage.json.npmrc parameterProcess argumentValue
LND_BINARY_NAMEbinaryNamelnd_binary_name--lnd-binary-nameString
LND_BINARY_SITEbinarySitelnd_binary_site--lnd-binary-siteURL
LND_BINARY_PATHbinaryPathlnd_binary_path--lnd-binary-pathPath
LND_BINARY_DIRbinaryDirlnd_binary_dir--lnd-binary-dirPath
LND_BINARY_PLATFORMbinaryPlatformlnd_binary_platform--lnd-binary-platformPlatform
LND_BINARY_ARCHbinaryArchlnd_binary_arch--lnd-binary-archArchitecture
LND_BINARY_VERSIONbinaryVersionlnd_binary_version--lnd-binary-versionVersion

These parameters can be used in package.json config section:

  • E.g.
{
  "config": {
    "lnd-binary": {
      "binaryVersion": "0.4.2-beta"
    }
  }
}

These parameters can be used as environment variable:

  • E.g. export LND_BINARY_VERSION=0.4.2-beta

As local or global .npmrc configuration file:

  • E.g. lnd_binary_version=0.4.2-beta

As a process argument:

  • E.g. npm install lnd-binary --lnd-binary-version 0.4.2-beta

Testing

Run the tests suite:

  npm test

Run with debugging output on:

  DEBUG='lnd-binary' npm test

Maintainers

@Tom Kirkpatrick (mrfelton).

Contribute

Feel free to dive in! Open an issue or submit PRs.

lnd-binary follows the Contributor Covenant Code of Conduct.

License

MIT © Tom Kirkpatrick

Keywords

FAQs

Package last updated on 16 Feb 2023

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