getenv-wire

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i getenv-wire

Weekly Downloads

4

Version

0.1.3

License

MIT

Last publish

Collaborators

  • vmoebius