{"success":true,"data":{"ext":"nup","name":"NUP","description":"NUP is a file format created and maintained by the Nuru project for storing ASCII and ANSI artwork together with palette data. It is used by Nuru-compatible editors and viewers to save text-mode graphics, color configurations, and related image resources. The format is generally safe to open, though it is a legacy niche format and support may be limited in modern applications.","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":["nui"],"usage":{"python":"def is_nup(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NUP 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 isNUP(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 IsNUP(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}"}}}