is-file-protected
v1.0.4
Published
A library to check if various file types are encrypted.
Downloads
7
Readme
is-file-protected
A library to check if various file types are encrypted.
Usage example
import { checkFileEncrypted } from "is-file-protected";
const isFileEncrypted = await checkFileEncrypted(filePath);
if (!isFileEncrypted) {
// file not protected
}
// file protected
File supported
- DOCX
- XLSX
- PPTX
- PPT (use msoffcrypto-tool)
- DOC (use msoffcrypto-tool)
- XLS (use msoffcrypto-tool)
File supported (Coming soon)
- ZIP
- RAR
- 7Z
- TAR
- GZIP