Skip to content
github-actions[bot] edited this page Jul 30, 2023 · 2 revisions

json-kit

JSON Toolkit for (de)serialization | (un)minification | (de)compression


Project State

This project is in maintenance state. The APIs are stable.

Installation

For Node.js:

  • npm install @kit-p/json-kit
  • yarn add @kit-p/json-kit
  • pnpm add @kit-p/json-kit

CommonJS

const { JsonKit } = require("@kit-p/json-kit");

ESM

import { JsonKit } from "@kit-p/json-kit";

For browsers:

CommonJS

  • <script src="https://cdn.jsdelivr.net/npm/@kit-p/json-kit"></script>
    <script>
      console.log(JsonKit);
    </script>
  • <script src="https://unpkg.com/@kit-p/json-kit"></script>
    <script>
      console.log(JsonKit);
    </script>

ESM

  • <script type="module">
      import { JsonKit } from "https://cdn.jsdelivr.net/npm/@kit-p/json-kit/+esm";
    </script>
  • <script type="module">
      import { JsonKit } from "https://unpkg.com/@kit-p/json-kit?module";
    </script>

Usage

See the documentation site or the repository Wiki page or docs/modules.md.

License

MIT