# @types/safe-json-stringify

> TypeScript definitions for safe-json-stringify

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

## Install

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

## 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.1.5 |
| Published | 2023-11-07 |
| First published | 2017-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.5 (latest) — 2023-11-07
- 1.1.2 (ts3.1) — 2020-09-14
- 1.1.1 (ts3.0) — 2020-05-15
- 1.1.0 (ts2.3) — 2019-06-26
- 1.1.4 — 2023-10-18
- 1.1.3 — 2023-09-25
- 1.0.1 — 2017-08-21
- 1.0.0 — 2017-07-20

## README

# Installation
> `npm install --save @types/safe-json-stringify`

# Summary
This package contains type definitions for safe-json-stringify (https://github.com/debitoor/safe-json-stringify).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-json-stringify.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-json-stringify/index.d.ts)
````ts
declare namespace safeJsonStringify {
    function ensureProperties(obj: any): object;
}

// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter
type ReplacerFn = (key: any, value: any) => any;

declare function safeJsonStringify(
    data: object,
    replacer?: ReplacerFn | any[] | null,
    space?: string | number,
): string;

export = safeJsonStringify;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Eric Byers](https://github.com/ericbyers).

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