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 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T20:10:57.000Z (over 8 years ago)
- Last Synced: 2025-10-08T00:57:01.426Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- 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)