TEXI

application/x-texinfo

Safe

Magic Bytes

Offset: 0
5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F

TEXI is the source file format for Texinfo, the official documentation system of the GNU Project maintained by the Free Software Foundation. It allows authors to create online documentation and printed manuals from a single source file, supporting multiple output formats including HTML, PDF, and Info files. As a plain-text macro language, it is considered safe for general use, though security relies on the integrity of the conversion utilities used to generate final documents.

Extension

.texi

MIME Type

application/x-texinfo

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .texi files in Python

Python
def is_texi(file_path: str) -> bool:
    """Check if file is a valid TEXI by magic bytes."""
    signature = bytes([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F])
    with open(file_path, "rb") as f:
        return f.read(14) == signature

How to validate .texi files in Node.js

Node.js
function isTEXI(buffer: Buffer): boolean {
  const signature = Buffer.from([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F]);
  return buffer.subarray(0, 14).equals(signature);
}
Go
func IsTEXI(data []byte) bool {
    signature := []byte{0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F}
    if len(data) < 14 {
        return false
    }
    return bytes.Equal(data[:14], signature)
}

API Endpoint

GET /api/v1/texi
curl https://filesignature.org/api/v1/texi

Related Formats