Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "circular", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Tiny utility to safely stringify objects with circular references", | ||
@@ -5,0 +5,0 @@ "author": "muji <noop@xpm.io>", |
@@ -28,5 +28,10 @@ # Circular | ||
``` | ||
As of version `1.0.4` you can also pass an additional boolean that will convert function references to strings, useful for converting javascript modules to `couchdb` design documents. | ||
```javascript | ||
var str = JSON.stringify(obj, circular(null, true)); | ||
``` | ||
## License | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](/LICENSE) if you feel inclined. |
3708
37