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

lightrun

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightrun

Lightrun Debug Agent for Node.js

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by10.1%
Maintainers
4
Weekly downloads
 
Created
Source

Node.js Lightrun Debugger Agent

Runtime debugger agent for Node.js 10 and above.

Build And Installation

In order to compile the agent you can use - npm install To pack the agent you can run - ./build.sh. This will compile the agent, run tests and pack it to a tgz file. If you do not wish to run the tests, run ./build.sh --skiptests=true

To install the agent, take the built tgz file, copy it to the project you wish to install it in, and run npm install lightrun-*.tgz.

To run the tests, run ./run_all_tests.sh

To run the linter (and have it fix what it can), run npm run fix

Usage

After installing the agent, you can add it to your application by adding a require statement and starting the agent:

require('lightrun').start({company: '<Company name>', lightrunSecret: '<Company secret>'});

Additional configuration options are available to pass to the start call, such as:

  • noCheckCertificate - Pass true to disable certificate pinning
  • apiEndpoint - The server endpoint the agent will communicate with
  • caPath - Path to pem file of the CA signing the certificate of the server (useful for self-signed certificates)

Environment Variables

The agent supports some environment variables for configuration as well:

  • LIGHTRUN_SECRET - The company secret
  • LIGHTRUN_COMPANY - The company name
  • LIGHTRUN_TAGS - Comma separated list of tags for the agent
  • LIGHTRUN_METADATA_FILE - Path to file containing the metadata json for the agent

Keywords

FAQs

Package last updated on 01 Aug 2021

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