Permalink
Browse files

add env docs

  • Loading branch information...
1 parent b3278fd commit 584d873d5e9327bbc8b861d0e6b93c2cdaeab280 @tj committed Jun 28, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 Readme.md
View
@@ -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

0 comments on commit 584d873

Please sign in to comment.