# @types/json-string-splitter

> TypeScript definitions for json-string-splitter

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

## Install

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

## 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 | 2021-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Recent versions

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

## README

# Installation
> `npm install --save @types/json-string-splitter`

# Summary
This package contains type definitions for json-string-splitter (https://github.com/Densaugeo/JSON-String-Splitter).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-string-splitter.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-string-splitter/index.d.ts)
````ts
export = splitter;

/**
 * Accepts a string consisting of one or more valid JSON substrings and splits it. Any remaining string after the end of the last complete JSON substring is returned in the 'remainder' field.
 *
 * Passing in invalid JSON can result in garbage output
 *
 * @alias splitter
 * @since 1.0.0
 * @param string The string to look for JSON in
 *
 * @example
 * import splitter = require("json-string-splitter");
 *
 * const pieces = splitter('{"foo":"bar"}{"more":"json"}{"partial":"json"');
 *
 * pieces.jsons[0]; // '{"foo":"bar"}'
 * pieces.jsons[1]; // '{"more":"json"}'
 * pieces.remainder; // '{"partial":"json"'
 */
declare function splitter(string: string): { jsons: string[]; remainder: string };

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Jesse Wright](https://github.com/jeswr).

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