cold-storage
Full serialization/deserialization for JS objects.
Install:
npm install cold-storage
// serialize returns a Buffer// deserialize reads a Buffer// clone is chaining the twoconst serialize deserialize clone = ; // => { a: 1, b: 2 } // works with deep objects instanceof Object // false, even the prototypes are cloned
Breaking deserialization of existing serialized data is considered semver-major.
License
MIT