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

jsonsquasher

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

jsonsquasher

Lightweight and efficient JSON compressor

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Install

npm install jsonsquasher --save

Include

NodeJS

const jsonsquasher = require('jsonsquasher');

Browser

<script src='node_modules/jsonsquasher/build/jsonsquasher.js' type='text/javascript'></script>

...or use ES6 import

Use

// Compression
const compressedJson = jsonsquasher.compress(json);
// Decompression
const decompressedJson = jsonsquasher.compress(compressedJson);
// Faster and less memory usage, but with JSON mutation
console.log(json);
jsonsquasher.compress(json,{mutateJSON:true});
jsonsquasher.decompress(json,{mutateJSON:true});
console.log(json);

Keywords

jsonsquasher

FAQs

Package last updated on 05 Jun 2017

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