{"success":true,"data":{"ext":"alias","name":"ALIAS","description":"ALIAS is a macOS file-reference format created and maintained by Apple Inc. for storing alias records that point to other files, folders, or volumes. It is used by Finder and applications to preserve access to items after they are moved, renamed, or relocated, and appears in shortcuts, saved documents, and system metadata. The format is a legacy part of classic Mac OS and early macOS workflows; it is generally safe, though aliases can become stale when targets are unavailable.","mime":[],"risk_level":"Safe","signatures":[{"hex":"62 6F 6F 6B 00 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"6D 61 72 6B 00 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_alias(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ALIAS by magic bytes.\"\"\"\n    signature = bytes([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isALIAS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsALIAS(data []byte) bool {\n    signature := []byte{0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}