Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 9f08c15 commit 122f693fe2eda5a5efbbeab79adea8e3d8dfa659 @hunterloftis committed Jan 3, 2013
Showing with 8 additions and 3 deletions.
  1. +8 −3 README.md
View
@@ -28,7 +28,12 @@ Add the [latest minified build](https://github.com/hunterloftis/cryo/tree/master
<script type='text/javascript' src='cryo-0.0.4.js'></script>
```
-## Example
+## Use
+
+Cryo has a very simple API that mimicks JSON:
+
+- `Cryo.stringify(item)`
+- `Cryo.parse(string)`
```js
var Cryo = require('cryo');
@@ -44,7 +49,7 @@ var obj = {
var frozen = Cryo.stringify(obj);
var hydrated = Cryo.parse(frozen);
-hydrated.hello(); // Hunter says hello in 2013!
+hydrated.hello(); // Hunter said hello in 2013!
```
## More powerful JSON
@@ -181,4 +186,4 @@ $ git clone git://github.com/hunterloftis/cryo.git
$ cd cryo
$ make setup
$ make test
-```
+```

0 comments on commit 122f693

Please sign in to comment.