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.