scanpack
Version:
Dependency scanner to detect unknown or malicious packages in Node.js and Bun projects
61 lines • 1.61 kB
JSON
{
"name": "scanpack",
"version": "1.1.2",
"description": "Dependency scanner to detect unknown or malicious packages in Node.js and Bun projects",
"main": "dist/index.js",
"type": "module",
"bin": {
"scanpack": "./dist/cli.js"
},
"keywords": [
"security",
"dependencies",
"scanner",
"npm",
"malicious",
"package-scanner",
"dependency-scanner",
"pack-scanner"
],
"author": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/nuelst/scanpack.git"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"chalk": "^5.6.2",
"cli-progress": "^3.12.0",
"commander": "^12.1.0",
"pino": "^9.14.0",
"pino-pretty": "^11.3.0"
},
"devDependencies": {
"@types/cli-progress": "^3.11.0",
"@types/node": "^20.19.25",
"@vitest/coverage-v8": "^1.6.1",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"vitest": "^1.6.1"
},
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc && npm run copy-assets && npm run add-shebang",
"copy-assets": "cp src/malicious-packages.json dist/malicious-packages.json",
"add-shebang": "node -e \"const fs=require('fs');const f='dist/cli.js';const c=fs.readFileSync(f,'utf8');if(!c.startsWith('#!/'))fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c);\"",
"prepublishOnly": "npm run build",
"start": "node dist/index.js",
"cli": "tsx src/cli.ts",
"test": "vitest",
"test:watch": "vitest --watch",
"test:coverage": "vitest --coverage"
}
}