VienDinhCom / env-kit

Env Kit for Node Development

Home Page:https://www.npmjs.com/package/env-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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