{"success":true,"data":{"ext":"ws","name":"WordStar Version 5","description":"WordStar Version 5 is a legacy word processing document format developed by MicroPro International for the WordStar word processor. It was used for drafting letters, reports, manuscripts, and other text documents in early DOS-based publishing and office workflows. The format is obsolete and largely preserved for archival access; it poses little security risk, although converters and emulators may be needed to open older files.","mime":[],"risk_level":"Safe","signatures":[{"hex":"1D 7D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_ws(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WS by magic bytes.\"\"\"\n    signature = bytes([0x1D, 0x7D])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isWS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x1D, 0x7D]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsWS(data []byte) bool {\n    signature := []byte{0x1D, 0x7D}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}