Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 533 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 533 Bytes

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