# @types/json-parse-better-errors

> TypeScript definitions for json-parse-better-errors

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

## Install

```sh
npm install @types/json-parse-better-errors
pnpm add @types/json-parse-better-errors
yarn add @types/json-parse-better-errors
bun add @types/json-parse-better-errors
```

## 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.3 |
| Published | 2023-11-07 |
| First published | 2018-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.0 (ts2.0) — 2018-02-26
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-15

## README

# Installation
> `npm install --save @types/json-parse-better-errors`

# Summary
This package contains type definitions for json-parse-better-errors (https://github.com/zkat/json-parse-better-errors#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-parse-better-errors.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-parse-better-errors/index.d.ts)
````ts
export = json_parse_better_errors;

/**
 * Converts a JavaScript Object Notation (JSON) string into an object.
 * @param text A valid JSON string.
 * @param reviver A function that transforms the results. This function is called for each member of the object.
 *               If a member contains nested objects, the nested objects are transformed before the parent object is.
 * @param context The number of characters to display in each direction around the position of an error.
 */
declare function json_parse_better_errors(
    txt: string,
    reviver?: (key: string, value: any) => any,
    context?: number,
): any;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Daniel Rosenwasser](https://github.com/DanielRosenwasser).

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