{"success":true,"data":{"ext":"lit","name":"Microsoft Reader eBook file","description":"Microsoft Reader eBook (LIT) is an electronic book file format developed and maintained by Microsoft for the Microsoft Reader platform. It was used to distribute novels, reference works, and other digital publications for reading on Windows and Pocket PC devices. The format is now legacy and Microsoft Reader was discontinued, but the files are generally considered safe to open in compatible readers.","mime":[],"risk_level":"Safe","signatures":[{"hex":"49 54 4F 4C 49 54 4C 53","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["epub","oxps","djv","djvu","eps","mobi"],"usage":{"python":"def is_lit(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LIT by magic bytes.\"\"\"\n    signature = bytes([0x49, 0x54, 0x4F, 0x4C, 0x49, 0x54, 0x4C, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isLIT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x49, 0x54, 0x4F, 0x4C, 0x49, 0x54, 0x4C, 0x53]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsLIT(data []byte) bool {\n    signature := []byte{0x49, 0x54, 0x4F, 0x4C, 0x49, 0x54, 0x4C, 0x53}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"eBooks"}}