New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

base-path-env

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-path-env

Util function to get the basePath env variable.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Util function to get the basePath env variable.

How to use it?

npm i base-path-env
const { getBasePath } = require("base-path-env");
const basePath = getBasePath();

Environment variable

In order for this to work, you need to specify in your .env file the BASE_PATH variable, or you can just export the env variable. Eg.:

BASE_PATH=subdomain/

Keywords

nodejs

FAQs

Package last updated on 08 Jun 2020

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