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

envir

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envir

get npm env variables from package.json

latest
Source
npmnpm
Version
3.0.3
Version published
Weekly downloads
993
85.96%
Maintainers
1
Weekly downloads
 
Created
Source

Envir NPM version Build Status Coverage Status

Get npm env variables from package.json.

Install

npm i envir --save

How to use?

import envir from 'envir';
const {env, cwd} = process;

envir(env.PATH, cwd(), require('./package'));
// returns
({
    npm_package_config_hello: 'world',
    PATH: '/home/coderaiser/envir/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
    npm_package_version: '1.0.0',
    npm_package_name: 'environ',
});
  • redrun - CLI tool to run multiple npm-scripts fast.
  • wisdom - Tool for publishing releases to github and npm according to Semantic Versionin.

License

MIT

FAQs

Package last updated on 18 Feb 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