1.0.1 • Published 3 years ago
@rauschma/env-var v1.0.1
env-var
How to use it
{
"scripts": {
"hi": "env-var echo {{npm_package_config_hi}}"
},
"config": {
"hi": "HELLO"
}
}Works on all platforms (tested on macOS and Windows):
% npm run hi
HELLOTips
- Use
npm run envto see which environment variables are available on your system.
Inspiration
Inspired by cross-var by Elijah Manor. Differences:
- A different syntax for interpolation.
- Interpolation is implemented differently.
- No dependencies.