Nupital Pomp Mesmerises

    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

    Install

    npm i cold-storage

    DownloadsWeekly Downloads

    1

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • addaleax