https://github.com/zkochan/subenv
Returns all the environment variables that are prefixed with the specified value
https://github.com/zkochan/subenv
Last synced: 4 months ago
JSON representation
Returns all the environment variables that are prefixed with the specified value
- Host: GitHub
- URL: https://github.com/zkochan/subenv
- Owner: zkochan
- License: mit
- Created: 2017-04-16T19:45:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T20:10:57.000Z (almost 8 years ago)
- Last Synced: 2024-10-05T09:41:41.225Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# subenv
> Returns all the environment variables that are prefixed with the specified value
[](https://www.npmjs.com/package/subenv) [](https://travis-ci.org/zkochan/subenv)
## Installation
```sh
npm i -S subenv
```## Usage
```js
'use strict'
const subenv = require('subenv')process.env.capitals_USA = 'Washington'
process.env.capitals_hungary = 'Budapest'console.log(subenv('capitals'))
//> { usa: 'Washington', hungary: 'Budapest' }
```## License
[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)