{"success":true,"data":{"ext":"texi","name":"TEXI","description":"Texinfo (TEXI) is a plain-text documentation source format created by Richard Stallman and maintained as part of the GNU Project. It is used to write software manuals, reference guides, and books that can be published in multiple output formats, including HTML, PDF, and Info. Because it is text-based, it is generally low risk; however, generated output may include embedded links or macros, and the format is now largely associated with GNU documentation tooling.","mime":["application/x-texinfo"],"risk_level":"Safe","signatures":[{"hex":"5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["texinfo","tex"],"usage":{"python":"def is_texi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TEXI by magic bytes.\"\"\"\n    signature = bytes([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F])\n    with open(file_path, \"rb\") as f:\n        return f.read(14) == signature","node":"function isTEXI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F]);\n  return buffer.subarray(0, 14).equals(signature);\n}","go":"func IsTEXI(data []byte) bool {\n    signature := []byte{0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F}\n    if len(data) < 14 {\n        return false\n    }\n    return bytes.Equal(data[:14], signature)\n}"}}}