An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# unenvify [![Build Status](https://travis-ci.org/ragingwind/unenvify.svg?branch=master)](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)