Installation

npm install @re-factor/sdk

Configuration

To connect the SDK to your Re-Factor instance, you need to set the following environment variables:
export REFACTOR_ACCOUNT_ID=<your_account_id>
export REFACTOR_API_KEY=<your_api_key>
export REFACTOR_API_URL=<your_api_url>
Or, to use the SDK in development mode, set the following environment variable:
export REFACTOR_DEVELOPMENT_MODE=true
Note that to use re-factor in development mode you will need to run the re-factor dev command before using the SDK.