https://github.com/maxdeviant/serialize-killer
Make your objects unserializable
https://github.com/maxdeviant/serialize-killer
Last synced: 11 months ago
JSON representation
Make your objects unserializable
- Host: GitHub
- URL: https://github.com/maxdeviant/serialize-killer
- Owner: maxdeviant
- License: mit
- Created: 2022-09-28T02:34:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T18:11:51.000Z (almost 3 years ago)
- Last Synced: 2025-04-09T15:16:46.154Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# serialize-killer
[](https://www.npmjs.com/package/serialize-killer)
[](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',
});
```