Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viendinhcom/env-kit
Env Kit for Node Development
https://github.com/viendinhcom/env-kit
dotenv env env-kit env-kit-get env-kit-pick env-vars environment environment-variables next next-env nextjs node node-env nodejs
Last synced: 14 days ago
JSON representation
Env Kit for Node Development
- Host: GitHub
- URL: https://github.com/viendinhcom/env-kit
- Owner: VienDinhCom
- License: mit
- Created: 2020-03-28T09:30:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T15:20:35.000Z (over 3 years ago)
- Last Synced: 2024-12-25T08:34:19.549Z (17 days ago)
- Topics: dotenv, env, env-kit, env-kit-get, env-kit-pick, env-vars, environment, environment-variables, next, next-env, nextjs, node, node-env, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/env-kit
- Size: 250 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Env Kit for Node Development
## Installation
```
npm install --save env-kit
```## Usage
### For TypeScript
```ts
import envKit from 'env-kit';
```### For Node
```js
const envKit = require('env-kit');
```### Pick
Pick environment variables
```ts
const { API_URL, API_KEY } = envKit.pick(['API_URL', 'API_KEY']);
```### Get
Get all environment variables
```ts
const allEnvVars = envKit.get();
```Get one environment variable
```ts
const API_URL = envKit.get('API_URL');
const API_KEY = envKit.get('API_KEY');
```