unenvify
Replacement Shell/Environment Variable in String
Install
$ npm install --save unenvify
Usage
const unenvify = require('unenvify');
unenvify('$HOME/path', {
HOME: os.homedir()
});
API
unenvify(str, [env])
str
Type: string
Target string having shell/environment variable
env
Type: object
Default: process.env
Environment variable sets
License
MIT © Jimmy Moon