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 → Express Example
🖥

Express.js Integration

Using toonkit2 in Node.js / Express APIs

toonkit2 works seamlessly with Express. Use express.text() middleware to accept TOON payloads and respond with TOON strings.

⚠️ Required: Always call app.use(express.text()) before your routes. Without this, req.body will be empty.