Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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