3.0.3 • Published 4 months ago

envir v3.0.3

Weekly downloads
600
License
MIT
Repository
github
Last release
4 months ago

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',
});

Related

License

MIT

3.0.3

4 months ago

3.0.2

4 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

8 years ago

1.0.0

8 years ago