Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme [ci skip]

  • Loading branch information...
commit 2ed3354aebb970ef00f642ecbce450232df3bd96 1 parent 8059830
@brianloveswords authored
Showing with 2 additions and 11 deletions.
  1. +2 −11 README.md
View
13 README.md
@@ -38,21 +38,12 @@ In this case, you would use `new habitat('airsupport')` -- the prefix will be
auto-capitalized because only barbarians use lowercase letters in their
environment variables.
-Note that you don't have to pass in a prefix, if you're crazy like
-that. Keys will be looked up (after capitalization) straight from the
-env:
-
-```js
-var env = new habitat;
-var path= env.get('path');
-```
-
`defaults` is an object representing the defaults if a key cannot be
found in the environment. This should be used sparingly.
```js
-var env = new habitat('airsupport', { port: 3000 })
-// will try the environment first, then fall back to 3000
+var env = new habitat('airsupport', { port: 1024 })
+// will try the environment first, then fall back to 1024
var port = env.get('port');
```
Please sign in to comment.
Something went wrong with that request. Please try again.