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

envuse

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envuse

Module to load environment variables from a `.envuse` file. Ideal to load configurations from the environment system, transform values and configure default values.

latest
Source
npmnpm
Version
4.3.2
Version published
Weekly downloads
1
-97.06%
Maintainers
1
Weekly downloads
 
Created
Source

Envuse

.envuse

Module to load environment variables from a .envuse file. Ideal to load configurations from the environment system, transform values and configure default values.

Install

npm i --save envuse

Usage

Create your .envuse file.

DB_URI
PORT:Number=3000

and load with the parse(string) function.

import { parse } from "envuse"

const config = parse(".envuse")
const port: number = config.PORT

Load default configs

import config from "envuse/config";

const port: number = config.PORT;

Compatibility

Check the full list here compatibility.json

FAQs

Package last updated on 24 Jan 2023

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