serialize-javascript

github.com

Serialize JavaScript to a superset of JSON that includes regular expressions and functions. How many times have you wanted to store a data structure in localStorage only to be hampered by what types you can store in it? I'm thinking Maps and Sets primarily, but dates and regular expressions as well will work with this library. Not useful as a data exchange format, but if you want to save something in JavaScript for use later, this library could be a big help.

Read more...
Linkedin

Want to receive more content like this in your inbox?