Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
totherik committed Feb 27, 2014
1 parent 0bb68b2 commit 5602a50
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
shortstop
=========


Sometimes JSON just isn't enough for configuration needs. Occasionally it would be nice to use arbitrary types as values,
but JSON is necessarily a subset of all available JS types. `shortstop` enables the use of protocols and handlers to
enable identification and special handling of json values.
Expand Down Expand Up @@ -43,9 +42,6 @@ resolver.resolve(json, function (err, data) {
// }
// }
});



```


Expand Down Expand Up @@ -85,24 +81,13 @@ resolver.resolve(json, function (err, data) {
// "certs": "/path/to/my/certs/myapp"
// }
});


```


#### Removing Handlers

When registered, handlers return an `unregister` function you can call when you no longer want a handler in the chain.


```js
// json1
{
"key": "path:foo/baz.key"
}
```


```javascript
var fs = require('fs');
var path = require('path');
Expand Down Expand Up @@ -142,6 +127,4 @@ resolver.resolve(json, function (err, data) {
// "key": "path:foo/baz.key"
// }
});


```

0 comments on commit 5602a50

Please sign in to comment.