etoon 0.7.0

Fast TOON (Token-Oriented Object Notation) encoder tracking spec v4.1. Up to 7.6x faster than toons, 3.0-8.3x faster than the official TS SDK.
Documentation
{
  "version": "4.0",
  "category": "encode",
  "description": "Whitespace and formatting invariants – no trailing spaces, no trailing newlines",
  "tests": [
    {
      "name": "produces no trailing newline at end of output",
      "input": {
        "id": 123
      },
      "expected": "id: 123",
      "specSection": "12"
    },
    {
      "name": "maintains proper indentation for nested structures",
      "input": {
        "user": {
          "id": 123,
          "name": "Ada"
        },
        "items": ["a", "b"]
      },
      "expected": "user:\n  id: 123\n  name: Ada\nitems[2]: a,b",
      "specSection": "12"
    },
    {
      "name": "respects custom indentSize option",
      "input": {
        "user": {
          "name": "Ada",
          "role": "admin"
        }
      },
      "expected": "user:\n    name: Ada\n    role: admin",
      "specSection": "12",
      "options": {
        "indentSize": 4
      }
    },
    {
      "name": "leaves non-ASCII whitespace unquoted",
      "input": {
        "k": "\u00a0x\u00a0"
      },
      "expected": "k: \u00a0x\u00a0",
      "specSection": "7.2",
      "note": "The whitespace trigger is U+0020 and U+0009 only",
      "minSpecVersion": "4.1"
    }
  ]
}