{"success":true,"data":{"ext":"texinfo","name":"TEXINFO","description":"Texinfo is a documentation markup format created by the GNU Project and maintained within the GNU documentation system. It is used to author software manuals, reference guides, and other technical documents that can be converted into printed, HTML, and Info outputs. The format is generally safe and has long been used in GNU and Free Software documentation; it is not a binary document type, but files should still be reviewed when sourced from untrusted repositories.","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":["texi","tex"],"usage":{"python":"def is_texinfo(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TEXINFO 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 isTEXINFO(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 IsTEXINFO(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}"}}}