{"success":true,"data":{"ext":"ms","name":"MS","description":"The MS format is a troff macro package originally developed at AT&T Bell Laboratories and now maintained in modern troff implementations such as groff. It is used to structure technical documents, reports, and manuscripts for typesetting with troff-based systems. As a legacy text formatting format, it is generally safe to process, though it may rely on older document-processing tools that are less common in current workflows.","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","nroff","roff","t","tr"],"usage":{"python":"def is_ms(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MS 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 isMS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x5C, 0x22]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsMS(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}"}}}