Skip to content

Commit

Permalink
add env docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 28, 2012
1 parent b3278fd commit 584d873
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ yields:

### eson.env([prefix])

Allow environment variables to define config values. If you have the following:

```js
{
"upload path": "/data/uploads"
}
```

You could then export `UPLOAD_PATH=/tmp` to change this value. Optionally when
a `prefix` is given such as "MYAPP_" then you must prefix such as `MYAPP_UPLOAD_PATH=/tmp`.

### eson.replace(str, val)

The replace plugin allows you to replace arbitrary substrings, useful
Expand Down

0 comments on commit 584d873

Please sign in to comment.