{"success":true,"data":{"ext":"stl","name":"ASCIISTL","description":"ASCII STL (STereoLithography) is a text-based 3D geometry file format originally developed by 3D Systems and used as a de facto interchange format in additive manufacturing. It is used to describe the surface geometry of parts for 3D printing, prototyping, computer-aided design, and model exchange between software tools. The format is simple and widely supported, but it stores only mesh data and no units, color, or material information.","mime":["model/stl"],"risk_level":"Safe","signatures":[{"hex":"73 6F 6C 69 64","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["3ds","blend","glb","obj"],"usage":{"python":"def is_stl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid STL by magic bytes.\"\"\"\n    signature = bytes([0x73, 0x6F, 0x6C, 0x69, 0x64])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isSTL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x73, 0x6F, 0x6C, 0x69, 0x64]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsSTL(data []byte) bool {\n    signature := []byte{0x73, 0x6F, 0x6C, 0x69, 0x64}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"CAD & 3D"}}