env-kit
v2.0.4
Published
Env Kit for Node Development
Downloads
4,911
Readme
Env Kit for Node Development
Installation
npm install --save env-kit
Usage
For TypeScript
import envKit from 'env-kit';
For Node
const envKit = require('env-kit');
Pick
Pick environment variables
const { API_URL, API_KEY } = envKit.pick(['API_URL', 'API_KEY']);
Get
Get all environment variables
const allEnvVars = envKit.get();
Get one environment variable
const API_URL = envKit.get('API_URL');
const API_KEY = envKit.get('API_KEY');