toonkit2
Type-SafeCompactHuman-ReadableMIT

toonkit2

A parser & serializer for TOON — Typed Object Oriented Notation. Transform JSON to compact TOON format and back with built-in type awareness.

$ npm install toonkit2
Docs → Installation
📥

Installation

npm
npm install toonkit2
Legacy npm
npm i toonkit
yarn
yarn add toonkit2
pnpm
pnpm add toonkit2

Use the jsDelivr package for browser usage without a package manager:

jsDelivr (browser)
<script src="https://cdn.jsdelivr.net/npm/toonkit2@2.5.0/dist/cjs/index.min.js"></script>
<script type="module">
  import toonkit2 from "https://cdn.jsdelivr.net/npm/toonkit2@2.5.0/+esm";
</script>

Major package update: toonkit is the old legacy package name. toonkit2 is the official recommended package for all new applications. See the legacy npm package for existing projects.