{"success":true,"data":{"ext":"nroff","name":"NROFF","description":"NROFF is a legacy text formatting language and file format from the Unix troff system, originally developed at AT&T Bell Labs and maintained through Unix-like documentation tooling. It is used to prepare plain-text manuals, command references, and other terminal-oriented documents for formatted output on printers or display devices. The format is generally safe, though older files may contain macros and embedded commands that can affect rendering or reference external resources.","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":["man","me","ms","roff","t","tr"],"usage":{"python":"def is_nroff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NROFF 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 isNROFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x5C, 0x22]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsNROFF(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}"}}}