{"success":true,"data":{"ext":"esd","name":"Easy Street Draw diagram file","description":"Easy Street Draw diagram file (ESD) is a proprietary diagram document format used by the Easy Street Draw application. It is used to store drawings such as flowcharts, schematics, and other structured diagrams for editing and later reuse. The format is generally considered safe, and there is little public documentation about its internal structure; as with other legacy application-specific formats, support may depend on compatible software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 53 57 49 4D 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"D0 00 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"7E 45 53 44 77 F6 85 3E BF 6A D2 11 45 61 73 79 20 53 74 72 65 65 74 20 44 72 61 77","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["swm","wim"],"usage":{"python":"def is_esd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ESD by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isESD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsESD(data []byte) bool {\n    signature := []byte{0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}