Skip to main content

Node.JS Interceptor

Installation

To begin the installation process, execute the following command:

npm install lunar-interceptor@1.1.x

Configuration

The only required configuration is the LUNAR_PROXY_HOST environment variable. This variable should be set to the host or IP of Lunar Proxy, including the port it is listening on.

For example:

export LUNAR_PROXY_HOST="lunar-proxy:8000"

For more details and other configuration options, refer to our Configuration Guide

Usage

Import Lunar Interceptor into the application entry point at the beginning of the file.

require("lunar-interceptor")
# imports ...

# your code
Click me for guidance 😀