pickenv

1.0.1 • Public • Published

npm version

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.

Readme

Keywords

none

Package Sidebar

Install

npm i pickenv

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.39 kB

Total Files

5

Last publish

Collaborators

  • mwcz