{"success":true,"data":{"ext":"ibooks","name":"IBOOKS","description":"IBOOKS is a packaged e-book format created and maintained by Apple for use with iBooks Author and Apple Books. It is used to distribute interactive textbooks, manuals, and other richly formatted publications on Apple devices and in Apple’s reading applications. The format is based on a ZIP container and is generally safe to open, though like other document packages it may include embedded media or links from untrusted sources.","mime":["application/x-ibooks+zip"],"risk_level":"Safe","signatures":[{"hex":"50 4B 03 04","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_ibooks(file_path: str) -> bool:\n    \"\"\"Check if file is a valid IBOOKS by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B, 0x03, 0x04])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isIBOOKS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B, 0x03, 0x04]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsIBOOKS(data []byte) bool {\n    signature := []byte{0x50, 0x4B, 0x03, 0x04}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}