# @types/json-bigint

> TypeScript definitions for json-bigint

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/json-bigint
pnpm add @types/json-bigint
yarn add @types/json-bigint
bun add @types/json-bigint
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2020-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/json-bigint
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-bigint
- npm.io page: https://npm.io/package/@types/json-bigint

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.1 (ts3.6) — 2021-07-06
- 1.0.0 (ts3.1) — 2020-09-11
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-15

## README

# Installation
> `npm install --save @types/json-bigint`

# Summary
This package contains type definitions for json-bigint (https://github.com/sidorares/json-bigint#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-bigint.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-bigint/index.d.ts)
````ts
declare const stringify: typeof JSON.stringify;
declare const parse: typeof JSON.parse;

declare function JSONBig(options?: Options): { parse: typeof parse; stringify: typeof stringify };

interface Options {
    /**
     * @default false
     */
    strict?: boolean | undefined;
    /**
     * @default false
     */
    storeAsString?: boolean | undefined;
    /**
     * @default false
     */
    alwaysParseAsBig?: boolean | undefined;
    /**
     * @default false
     */
    useNativeBigInt?: boolean | undefined;
    /**
     * @default 'error'
     */
    protoAction?: "error" | "ignore" | "preserve" | undefined;
    /**
     * @default 'error'
     */
    constructorAction?: "error" | "ignore" | "preserve" | undefined;
}

type JSONBigExport = typeof JSONBig & { parse: typeof parse; stringify: typeof stringify };

declare const _: JSONBigExport;
export = _;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [yamachu](https://github.com/yamachu).

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