npm install github:acodev/zip-bomb-detector-module
import { analyzeZip } from '@acodev/zip-bomb-detector';
(async () => {
try {
const result = await analyzeZip('./path/to/your.zip');
console.log(result);
} catch (error) {
console.error('Error analyzing ZIP:', error);
}
})();{
"isBomb": true,
"details": {
"reason": "Too many entries",
"entryCount": 15000
}
}