# redux-persist-transform-bigint

> Transformer to serialize BigInt in Redux Persist

Latest version **1.0.3** (published 2026-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-persist-transform-bigint
pnpm add redux-persist-transform-bigint
yarn add redux-persist-transform-bigint
bun add redux-persist-transform-bigint
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2026-08-04 |
| First published | 2023-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | c2r0b |
| Maintainers | lorenzoganni |

## Links

- npm: https://www.npmjs.com/package/redux-persist-transform-bigint
- Repository: https://github.com/c2r0b/redux-persist-transform-bigint
- Homepage: https://github.com/c2r0b/redux-persist-transform-bigint#readme
- Issues: https://github.com/c2r0b/redux-persist-transform-bigint/issues
- npm.io page: https://npm.io/package/redux-persist-transform-bigint

## Dependencies (1)

- [redux-persist](https://npm.io/package/redux-persist.md) ^6.0.0

## Recent versions

- 1.0.3 (latest) — 2026-08-04
- 1.0.2 — 2023-11-22
- 1.0.1 — 2023-11-22
- 1.0.0 — 2023-11-22

## README

# BigInt Redux Serializer
Transformer to serialize BigInt in Redux Persist. This solves the issue of BigInt not being supported by JSON.stringify and avoids the need to use a custom serializer.

Solves issue [#1447](https://github.com/rt2zz/redux-persist/issues/1447) of Redux Persist.

## Installation
```bash
npm install --save redux-persist-transform-bigint
```

## Usage
```javascript   
import { BigIntTransform } from 'redux-persist-transform-bigint'

const persistConfig = {
  key: 'root',
  storage,
  transforms: [BigIntTransform]
}

// ... rest of the code
```


or with custom options:

```javascript
import createBigIntTransform from 'redux-persist-transform-bigint'

const persistConfig = {
  key: 'root',
  storage,
  transforms: [createBigIntTransform({
    whitelist: ['myBigIntReducer']
  })]
}

// ... rest of the code
```

## Options
All the config options that can be passed to the transformer are the same as the ones that can be passed to the [redux-persist](https://github.com/rt2zz/redux-persist#transforms) createTransform function (e.g. whitelist, blacklist).

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