Git Product home page Git Product logo

lnd-binary's Introduction

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 name package.json .npmrc parameter Process argument Value
LND_BINARY_NAME binaryName lnd_binary_name --lnd-binary-name String
LND_BINARY_SITE binarySite lnd_binary_site --lnd-binary-site URL
LND_BINARY_PATH binaryPath lnd_binary_path --lnd-binary-path Path
LND_BINARY_DIR binaryDir lnd_binary_dir --lnd-binary-dir Path
LND_BINARY_PLATFORM binaryPlatform lnd_binary_platform --lnd-binary-platform Platform
LND_BINARY_ARCH binaryArch lnd_binary_arch --lnd-binary-arch Architecture
LND_BINARY_VERSION binaryVersion lnd_binary_version --lnd-binary-version Version

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

lnd-binary's People

Contributors

dependabot[bot] avatar mrfelton avatar ottoallmendinger avatar rahulbile avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.