{"success":true,"data":{"ext":"ws2","name":"WordStar for Windows Ver","description":"WordStar for Windows Ver. 2 (WS2) is a legacy word-processing document format developed by MicroPro International for the WordStar for Windows line. It was used to store formatted text for letters, reports, and other office documents within the WordStar application. The format is obsolete and generally safe to open, although modern software support is limited and files from untrusted sources should still be handled cautiously.","mime":[],"risk_level":"Safe","signatures":[{"hex":"57 53 32 30 30 30","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_ws2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WS2 by magic bytes.\"\"\"\n    signature = bytes([0x57, 0x53, 0x32, 0x30, 0x30, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isWS2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x57, 0x53, 0x32, 0x30, 0x30, 0x30]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsWS2(data []byte) bool {\n    signature := []byte{0x57, 0x53, 0x32, 0x30, 0x30, 0x30}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}