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

catenv

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catenv

Load and manage your environment with confidence

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

catenv NPM version

Load and manage your environment with confidence

catenv is a lightweight Node.js package to load environment variables from .env files easily and safely.

Features

  • Load .env files into process.env
  • Skip empty lines and comments
  • Avoid overwriting existing environment variables
  • Random success messages for confirmation
  • Simple CommonJS usage

Installation

npm install catenv

Usage

CommonJS

const catenv = require('catenv').load(); // loads .env from project root

console.log(process.env.YOUR_ENV_VARIABLE);

Load a custom path

const catenv = require('catenv').load('./config/.env'); // loads .env from ./config folder;

License

MIT

Keywords

console

FAQs

Package last updated on 14 Oct 2025

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