{"success":true,"data":{"ext":"ar","name":"AR","description":"AR is a Unix archive file format originally developed for early Unix systems and now standardized through POSIX and maintained by the relevant standards bodies. It is used to bundle object files, libraries, and related resources into a single archive, especially in static library and software packaging workflows. The format is generally safe to inspect, though archived contents should be trusted only when the source is known; it is largely a legacy format.","mime":["application/x-archive"],"risk_level":"Safe","signatures":[{"hex":"3D 3C 61 72 3E","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"}]},{"hex":"21 3C 61 72 63 68 3E 0A","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":["a"],"usage":{"python":"def is_ar(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AR by magic bytes.\"\"\"\n    signature = bytes([0x3D, 0x3C, 0x61, 0x72, 0x3E])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isAR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3D, 0x3C, 0x61, 0x72, 0x3E]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsAR(data []byte) bool {\n    signature := []byte{0x3D, 0x3C, 0x61, 0x72, 0x3E}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}