# parcel-plugin-jsonpack

> Parcel plugin that uses jsonpack to pack imported json files into much smaller strings

Latest version **1.0.2** (published 2018-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install parcel-plugin-jsonpack
pnpm add parcel-plugin-jsonpack
yarn add parcel-plugin-jsonpack
bun add parcel-plugin-jsonpack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-04 |
| First published | 2018-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ol-web |
| Maintainers | ol-web |
| Keywords | parcel, parcel-plugin, parcel-plugin-jsonpack, jsonpack, json, parcel-plugin-json |

## Links

- npm: https://www.npmjs.com/package/parcel-plugin-jsonpack
- Repository: https://github.com/oL-web/parcel-plugin-jsonpack
- Homepage: https://github.com/oL-web/parcel-plugin-jsonpack#readme
- Issues: https://github.com/oL-web/parcel-plugin-jsonpack/issues
- npm.io page: https://npm.io/package/parcel-plugin-jsonpack

## Dependencies (1)

- [jsonpack](https://npm.io/package/jsonpack.md) ^1.1.5

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-12-04
- 1.0.1 — 2018-11-25
- 1.0.0 — 2018-11-25

## README

# parcel-plugin-jsonpack

[Parcel](https://github.com/parcel-bundler/parcel) plugin that uses [jsonpack](https://github.com/rgcl/jsonpack) to pack imported json files into much smaller strings. You can then unpack the string client-side. This plugin is useful if you have large amounts of JSON data with long keys to send. jsonpack itself is around 7kb minifed but can save even up to 50% of the JSON size.

* * *

### Installation and usage:

`npm install --save-dev parcel-plugin-jsonpack`  
`npm install --save jsonpack`  

Test

`npm run test`  

Usage:
```javascript
    import jsonData from "./data.json";
    import jsonpack from "jsonpack";

    const data = jsonpack.unpack(jsonData);
```

* * *

### Is there something wrong?

Please tell me!

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