{"success":true,"data":{"ext":"oth","name":"OTH","description":"OpenDocument Text Web (OTH) is an OASIS-maintained file format in the OpenDocument family, used for web-oriented text documents. It is used for publishing lightweight documents that can be opened by office suites and other OpenDocument-compatible applications, including LibreOffice and Apache OpenOffice. The format is generally safe, though as with other document files, content may include embedded links or macros in some environments; it is less common than standard OpenDocument text formats.","mime":["application/vnd.oasis.opendocument.text-web"],"risk_level":"Safe","signatures":[{"hex":"50 4B","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":[],"usage":{"python":"def is_oth(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OTH by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isOTH(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsOTH(data []byte) bool {\n    signature := []byte{0x50, 0x4B}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}