{"success":true,"data":{"ext":"mgw","name":"MGW","description":"MGW is a Nintendo Game & Watch image file format originating from Nintendo’s handheld Game & Watch series. It is used by emulators, archival tools, and fan projects to store and reproduce Game & Watch graphics and related device data for preservation and playback. The format is associated with legacy hardware and is generally low risk, although files from untrusted sources should still be handled with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"6D 61 69 6E 2E 62 73","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_mgw(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MGW by magic bytes.\"\"\"\n    signature = bytes([0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x62, 0x73])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isMGW(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x62, 0x73]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsMGW(data []byte) bool {\n    signature := []byte{0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x62, 0x73}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"}}}