{"success":true,"data":{"ext":"jdf","name":"JDF","description":"JDF is a file format developed and maintained by JEOL Ltd. for use with its scientific instruments and analysis software. It is used to store and exchange data from laboratory systems, including spectroscopy, microscopy, and related scientific measurement workflows. The format is generally safe and is mainly encountered in JEOL environments, though older files may require legacy software or converters.","mime":["application/x-jeol-jdf"],"risk_level":"Safe","signatures":[{"hex":"4A 45 4F 4C 2E 4E 4D 52","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_jdf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JDF by magic bytes.\"\"\"\n    signature = bytes([0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isJDF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsJDF(data []byte) bool {\n    signature := []byte{0x4A, 0x45, 0x4F, 0x4C, 0x2E, 0x4E, 0x4D, 0x52}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}