{"success":true,"data":{"ext":"wl","name":"WL","description":"WL is a Wolfram Language source file format created and maintained by Wolfram Research for representing code in text form. It is used for Wolfram notebooks, scripts, package files, and programmatic computations in Mathematica and related tools in academic and research workflows. The format is generally safe as plain text, though as executable code it should only be opened from trusted sources.","mime":["application/vnd.wolfram.wl"],"risk_level":"Safe","signatures":[{"hex":"23 21 2F 75 73 72 2F 62 69 6E 2F 65 6E 76 20 77 6F 6C 66 72 61 6D 73 63 72 69 70 74","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_wl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WL by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x21, 0x2F, 0x75, 0x73, 0x72, 0x2F, 0x62, 0x69, 0x6E, 0x2F, 0x65, 0x6E, 0x76, 0x20, 0x77, 0x6F, 0x6C, 0x66, 0x72, 0x61, 0x6D, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74])\n    with open(file_path, \"rb\") as f:\n        return f.read(28) == signature","node":"function isWL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x21, 0x2F, 0x75, 0x73, 0x72, 0x2F, 0x62, 0x69, 0x6E, 0x2F, 0x65, 0x6E, 0x76, 0x20, 0x77, 0x6F, 0x6C, 0x66, 0x72, 0x61, 0x6D, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]);\n  return buffer.subarray(0, 28).equals(signature);\n}","go":"func IsWL(data []byte) bool {\n    signature := []byte{0x23, 0x21, 0x2F, 0x75, 0x73, 0x72, 0x2F, 0x62, 0x69, 0x6E, 0x2F, 0x65, 0x6E, 0x76, 0x20, 0x77, 0x6F, 0x6C, 0x66, 0x72, 0x61, 0x6D, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74}\n    if len(data) < 28 {\n        return false\n    }\n    return bytes.Equal(data[:28], signature)\n}"}}}