# pickenv

> process.env too big? Get only the environment variables you want.

Latest version **1.0.1** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install pickenv
pnpm add pickenv
yarn add pickenv
bun add pickenv
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-02-13 |
| First published | 2020-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Michael Clayton |
| Maintainers | mwcz |

## Links

- npm: https://www.npmjs.com/package/pickenv
- npm.io page: https://npm.io/package/pickenv

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## Recent versions

- 1.0.1 (latest) — 2020-02-13
- 1.0.0 — 2020-02-13

## README

[![npm version](https://badge.fury.io/js/pickenv.svg)](https://badge.fury.io/js/pickenv)

# pickenv

`process.env` too big?  Get only the environment variables you want.


## example

```
npm install --save pickenv
```

Then write some regular expressions that match the environment variables you want to retrieve.  This example retrieves all the envs that start with "HIST".

```
import pickenv from "pickenv";

pickenv(["HIST.*"]);

// result:
// {
//   HISTCONTROL: "ignoredups",
//   HISTSIZE: "1000"
// }
```

Why is this useful, you might ask?  That's a good question.

---
_Source: https://npm.io/package/pickenv · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
