TOON is available in multiple languages. Choose your preferred ecosystem and start integrating TOON into your projects today.
Add the official @toon-format/toon package to your project
npm install @toon-format/toon
Quick start guide for encoding and decoding TOON format in TypeScript / JavaScript
import { encode, decode } from '@toon-format/toon'; // Your JSON data const data = { "name": "Alice", "age": 30 }; // Convert to TOON format const toonString = encode(data); console.log(toonString); // Output: // name: Alice // age: 30 // Convert back to JSON const jsonData = decode(toonString);