{"success":true,"data":{"ext":"wq2","name":"WQ2","description":"WQ2 is a spreadsheet file format used by Quattro Pro version 5, originally developed by Borland and later maintained by Corel as part of the Quattro Pro line. It is used to store worksheets, formulas, cell formatting, and related spreadsheet data for business, financial, and academic documents. As a legacy format, it is generally safe, though older files may not open correctly in modern spreadsheet applications.","mime":["application/x-quattro-pro;version=5"],"risk_level":"Safe","signatures":[{"hex":"00 00 02 00 21 51","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":["wb1","wb2","wk1","wk2","wkq","wq1"],"usage":{"python":"def is_wq2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WQ2 by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x02, 0x00, 0x21, 0x51])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isWQ2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x02, 0x00, 0x21, 0x51]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsWQ2(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x02, 0x00, 0x21, 0x51}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}