A function that accesses environment variables located in the .env file at the root of your project.
- Install the dependency:
npm i arrowy-env
- Create your .env file in the root directory and declare your variables:
touch <your-project>/.env
- Utilize the package in any file of your project:
import {env} from "arrowy-env"
env("DATABASE_NAME")