Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxdeviant/serialize-killer

Make your objects unserializable
https://github.com/maxdeviant/serialize-killer

Last synced: about 2 months ago
JSON representation

Make your objects unserializable

Awesome Lists containing this project

README

        

# serialize-killer

[![npm](https://img.shields.io/npm/v/serialize-killer.svg?maxAge=3600)](https://www.npmjs.com/package/serialize-killer)
[![CI](https://github.com/maxdeviant/serialize-killer/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/maxdeviant/serialize-killer/actions/workflows/ci.yml)

`serialize-killer` will make your objects unserializable.

You might want to use this if you have sensitive data that you don't want to accidentally get leaked over the wire.

## Installation

#### Yarn

```sh
yarn add serialize-killer
```

#### npm

```sh
npm install serialize-killer
```

## Usage

```ts
import { unserializable } from 'serialize-killer';

JSON.stringify({
sanity: unserializable(),
ssn: '555-55-5555',
creditCard: '4242 4242 4242 4242',
});
```