{"success":true,"data":{"ext":"nui","name":"NUI","description":"NUI is a file format used by the Nuru ASCII/ANSI art system, originally associated with Nuru image and palette data. It is used to store text-based artwork and related color information for display in compatible viewers and art tools. The format is largely a legacy format and is generally considered safe, with minimal security concerns beyond the usual caution applied to untrusted files.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4E 55 52 55 49 4D 47","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"4E 55 52 55 50 41 4C","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["nup"],"usage":{"python":"def is_nui(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NUI by magic bytes.\"\"\"\n    signature = bytes([0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isNUI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsNUI(data []byte) bool {\n    signature := []byte{0x4E, 0x55, 0x52, 0x55, 0x49, 0x4D, 0x47}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"}}}