- envsubstr
Small purposeful global npm module without dependencies.
Use in production at your own risk.
$ npm install -g envsubstr
- envsubstr ⇒
String
Replace matched value and return string.
Small purposeful global npm module without dependencies.
Use in production at your own risk.
$ npm install -g envsubstr
License: MIT
Example
$ echo "${USER}" | envsubstr
Replace matched value and return string.
Throws:
Error
Environment variable not found.
Param | Type |
---|---|
data | String |
Example
import parser from 'envsubstr';
parser('${USER}');