{"success":true,"data":{"ext":"man","name":"MAN","description":"MAN is a Unix manual page format used in the man-page ecosystem and maintained by operating system and software project documentation authors. It is used to document commands, system calls, library functions, and configuration files, and is commonly viewed with man, less, or troff-compatible tools. The format is longstanding and generally safe, though files may contain formatting macros and should be rendered with trusted viewers when obtained from unverified sources.","mime":["text/troff"],"risk_level":"Safe","signatures":[{"hex":"2E 5C 22","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"}]},{"hex":"27 5C 22","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"}]},{"hex":"27 2E 5C 22","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"}]},{"hex":"5C 22","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"}]},{"hex":"27 27 27","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":["me","ms","nroff","roff","t","tr"],"usage":{"python":"def is_man(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MAN by magic bytes.\"\"\"\n    signature = bytes([0x2E, 0x5C, 0x22])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isMAN(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x5C, 0x22]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsMAN(data []byte) bool {\n    signature := []byte{0x2E, 0x5C, 0x22}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}