1.1.1 • Published 4 months ago

json-ziip v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

JSON to Zip

npm version License

A lightweight npm package that converts a JSON object into a zipped file. This package provides a function JsonZiip that takes JSON data and an output file name, creates a zip file with the JSON data, and returns a Buffer of the zipped file.

Installation

npm install json-ziip

Usage

import { JsonZiip } from 'json-ziip';

const jsonData = {
    key: 'value',
    anotherKey: 'another value'
};

const buffer = JsonZiip(jsonData, 'output');

// `buffer` now contains a Buffer of a zipped file containing `jsonData`
1.1.1

4 months ago

1.0.1

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.0.1

4 months ago