0.0.1 • Published 6 years ago

envsubstr v0.0.1

Weekly downloads
35
License
MIT
Repository
github
Last release
6 years ago

Modules

envsubstr

Small purposeful global npm module without dependencies.

Production

Use in production at your own risk.

Install

$ npm install -g envsubstr

License: MIT
Example

$ echo "${USER}" | envsubstr

envsubstr ⇒ String

Replace matched value and return string.

Throws:

  • Error Environment variable not found.
ParamType
dataString

Example

import parser from 'envsubstr';
parser('${USER}');