New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

arrowy-env

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrowy-env

function which access to an env variables located in the .env file in the root folder.

npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

arrowy-env

A function that accesses environment variables located in the .env file at the root of your project based on laravel env helper.

getting started

  • 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", "default value")

FAQs

Package last updated on 24 Feb 2024

Related posts