@rauschma/env-var

1.0.1 • Public • Published

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
HELLO

Tips

  • Use npm run env to 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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @rauschma/env-var

      Weekly Downloads

      44

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      1.09 kB

      Total Files

      3

      Last publish

      Collaborators

      • rauschma