New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

parcel-plugin-jsonpack

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcel-plugin-jsonpack

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

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

parcel-plugin-jsonpack

Parcel plugin that uses 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:

    import jsonData from "./data.json";
    import jsonpack from "jsonpack";

    const data = jsonpack.unpack(jsonData);

Is there something wrong?

Please tell me!

Keywords

parcel

FAQs

Package last updated on 04 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts