1.0.4 • Published 4 years ago

base-path-env v1.0.4

Weekly downloads
10
License
ISC
Repository
github
Last release
4 years ago

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/
1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago