ME
text/troff
Magic Bytes
Offset: 0
2E 5C 22
The ME macro package is a typesetting extension originally developed by Eric Allman at the University of California, Berkeley for the troff system. It is primarily used to structure and format technical papers and academic documents within the BSD Unix environment. While largely superseded by modern alternatives like LaTeX, this legacy plain text format remains accessible via the GNU troff suite on contemporary Linux systems.
Validation Code
How to validate .me files in Python
Python
def is_me(file_path: str) -> bool:
"""Check if file is a valid ME by magic bytes."""
signature = bytes([0x2E, 0x5C, 0x22])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .me files in Node.js
Node.js
function isME(buffer: Buffer): boolean {
const signature = Buffer.from([0x2E, 0x5C, 0x22]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsME(data []byte) bool {
signature := []byte{0x2E, 0x5C, 0x22}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/me
curl https://filesignature.org/api/v1/me