{"success":true,"data":{"ext":"sml","name":"SML","description":"Standard ML (SML) is a source code file format used for programs written in the Standard ML programming language, which is maintained by the language community through its published specification and implementations. It is primarily used for functional programming, compiler development, research, and educational coursework in language theory. SML files are plain text and generally safe, although code from untrusted sources should be reviewed before compilation or execution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"3A 29 0A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_sml(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SML by magic bytes.\"\"\"\n    signature = bytes([0x3A, 0x29, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isSML(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3A, 0x29, 0x0A]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsSML(data []byte) bool {\n    signature := []byte{0x3A, 0x29, 0x0A}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}