cold-storage

3.0.0 • Public • Published

cold-storage

NPM Version NPM Downloads Build Status Coverage Status Dependency Status

Full serialization/deserialization for JS objects.

Install: npm install cold-storage

// serialize returns a Buffer
// deserialize reads a Buffer
// clone is chaining the two
const { serialize, deserialize, clone } = require('cold-storage');
 
clone({ a: 1, b: 2 }) // => { a: 1, b: 2 }
clone({ deep: { value: null } }) // works with deep objects
 
clone({}) instanceof Object // false, even the prototypes are cloned

Breaking deserialization of existing serialized data is considered semver-major.

License

MIT

/cold-storage/

    Package Sidebar

    Install

    npm i cold-storage

    Weekly Downloads

    6

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • addaleax