# cold-storage

> Full serialization of JS objects

Latest version **3.0.0** (published 2017-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install cold-storage
pnpm add cold-storage
yarn add cold-storage
bun add cold-storage
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-12-02 |
| First published | 2017-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Anna Henningsen |
| Maintainers | addaleax |
| Keywords | stack, trace, inspection, inspector, diagnostics |

## Links

- npm: https://www.npmjs.com/package/cold-storage
- Repository: https://github.com/addaleax/cold-storage
- Homepage: https://github.com/addaleax/cold-storage#readme
- Issues: https://github.com/addaleax/cold-storage/issues
- npm.io page: https://npm.io/package/cold-storage

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2017-12-02
- 2.1.0 — 2017-12-02
- 2.0.0 — 2017-11-30
- 1.0.1 — 2017-11-08
- 1.0.0 — 2017-11-07

## README

cold-storage
==============

[![NPM Version](https://img.shields.io/npm/v/cold-storage.svg?style=flat)](https://npmjs.org/package/cold-storage)
[![NPM Downloads](https://img.shields.io/npm/dm/cold-storage.svg?style=flat)](https://npmjs.org/package/cold-storage)
[![Build Status](https://travis-ci.org/addaleax/cold-storage.svg?style=flat&branch=master)](https://travis-ci.org/addaleax/cold-storage?branch=master)
[![Coverage Status](https://coveralls.io/repos/addaleax/cold-storage/badge.svg?branch=master)](https://coveralls.io/r/addaleax/cold-storage?branch=master)
[![Dependency Status](https://david-dm.org/addaleax/cold-storage.svg?style=flat)](https://david-dm.org/addaleax/cold-storage)

Full serialization/deserialization for JS objects.

Install:
`npm install cold-storage`

```js
// 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

---
_Source: https://npm.io/package/cold-storage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
