{"success":true,"data":{"ext":"pes","name":"Brother/Babylock/Bernina Home Embroidery file","description":"Brother/Babylock/Bernina Home Embroidery (PES) is a stitch-pattern file format used by home embroidery machines from Brother and related brands, and is maintained through proprietary vendor implementations. It stores design data such as thread colors, stitch sequences, and layout information for transferring embroidery patterns to compatible machines and editing software. The format is generally considered safe, though files from untrusted sources should still be checked before use, as with any machine-readable design file.","mime":[],"risk_level":"Safe","signatures":[{"hex":"23 50 45 53 30","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["pcs","pec","dst","hus"],"usage":{"python":"def is_pes(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PES by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x50, 0x45, 0x53, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isPES(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x50, 0x45, 0x53, 0x30]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsPES(data []byte) bool {\n    signature := []byte{0x23, 0x50, 0x45, 0x53, 0x30}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}