subenv

1.0.0 • Public • Published

subenv

Returns all the environment variables that are prefixed with the specified value

npm version Build Status

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' }

License

MIT © Zoltan Kochan

Dependents (0)

Package Sidebar

Install

npm i subenv

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zkochan