1.0.0 • Published 7 years ago
subenv v1.0.0
subenv
Returns all the environment variables that are prefixed with the specified value
Installation
npm i -S subenv
Usage
'use strict'
const subenv = require('subenv')
process.env.capitals_USA = 'Washington'
process.env.capitals_hungary = 'Budapest'
console.log(subenv('capitals'))
//> { usa: 'Washington', hungary: 'Budapest' }