https://github.com/ragingwind/unenvify
Replacement Shell/Environment Variable in String
https://github.com/ragingwind/unenvify
Last synced: 11 months ago
JSON representation
Replacement Shell/Environment Variable in String
- Host: GitHub
- URL: https://github.com/ragingwind/unenvify
- Owner: ragingwind
- License: mit
- Created: 2017-04-05T06:48:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-05T06:50:55.000Z (about 9 years ago)
- Last Synced: 2025-08-09T18:11:50.659Z (11 months ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# unenvify [](https://travis-ci.org/ragingwind/unenvify)
> Replacement Shell/Environment Variable in String
## Install
```
$ npm install --save unenvify
```
## Usage
```js
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](http://ragingwind.me)