# @types/jsonpack

> TypeScript definitions for jsonpack

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

## Install

```sh
npm install @types/jsonpack
pnpm add @types/jsonpack
yarn add @types/jsonpack
bun add @types/jsonpack
```

## 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.6 |
| Published | 2023-11-07 |
| First published | 2019-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.6 (latest) — 2023-11-07
- 1.1.3 (ts4.4) — 2023-08-22
- 1.1.2 (ts4.2) — 2022-12-30
- 1.1.1 (ts3.8) — 2021-07-08
- 1.1.0 (ts2.5) — 2019-05-15
- 1.1.5 — 2023-10-18
- 1.1.4 — 2023-09-15

## README

# Installation
> `npm install --save @types/jsonpack`

# Summary
This package contains type definitions for jsonpack (https://github.com/sapienlab/jsonpack).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonpack.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonpack/index.d.ts)
````ts
export interface PackOptions {
    verbose?: boolean | undefined;
}

export interface PackDebugOptions extends PackOptions {
    debug?: boolean | undefined;
}

export interface DebugObject {
    dictionary: {
        strings: string[];
        integers: number[];
        floats: number[];
    };
    ast: Array<{
        type: string;
        index: number;
    }>;
    packed: string;
}

export function pack(json: string | object, options?: PackOptions): string;
export function pack(json: string | object, options?: PackDebugOptions): DebugObject;
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
export function unpack<T = {}>(packed: string, options?: PackOptions): T;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Vlad Jerca](https://github.com/vladjerca).

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