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