0.1.3 • Published 9 years ago

getenv-wire v0.1.3

Weekly downloads
44
License
MIT
Repository
github
Last release
9 years ago

NPM version Build Status Dependency Status

wire.js plugin to get environment variables in wire spec

Install

$ npm install --save getenv-wire

Usage

Register plugin in wire.js spec

"$plugins": [
	{"module": "getenv-wire"}
]

Apply getenv factory in spec

Short form

"property": {
    "getenv": "VARIABLE"
}

Long form with optional default value

"property": {
    "getenv": {
        "variable": "VARIABLE",
        "default": "DEFAULT_VALUE"
    }
}

License

MIT © Volker Möbius