json-ziip
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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`

/json-ziip/

    Package Sidebar

    Install

    npm i json-ziip

    Weekly Downloads

    1

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    22.2 kB

    Total Files

    13

    Last publish

    Collaborators

    • makwasi