node-secure-scan
v1.0.2
Published
This is the project to make the custom security npm package that scans your dev dep. and non dev devp. and tell that what all major security packages your backend is missing and what will it happen if not used them .
Downloads
320
Readme
NODE-SECURE_SCAN is a node.js package used as a scanner for the package's in a project for the better security and to reduce the load of the packages research the developer has to done . [!IMPORTANT] How node-secure-scan works : This packages reads the dependences of the project using the package known as fs module and from the array of object the package have it checks the missing packages from the package.json file and suggests the user about the missing yet important packages which can reduce the security of the application .
🚀 Installation of the package
Install globally:
*npm install -g node-secure-scan*
or run directly without installing the package
*npx node-secure-scan*
Usage of the package
run this inside your project
*npx node-secure-scan*
For express, install these to secure:
- helmet: Protects against common HTTP header attacks
Command: npm i helmet
- csurf: Helps prevent CSRF attacks
Command: npm i csurf
Features of the package
Scans dependencies listed in package.json
Detects missing security packages for:
Express
Mongoose
SQL
Authentication libraries
Provides install commands and reasons for each recommendation
Lightweight and easy to integrate into any Node.js project.
📦 Project Structure
index.js → CLI entry point (with shebang #!/usr/bin/env node)
package.json → npm metadata, including bin field exposing the secure-scan command
README.md → Documentation (this file)
🛡️ Security Packages Suggested
helmet → Protects against common HTTP header attacks
csurf → Prevents CSRF attacks
bcrypt → Secure password hashing
express-rate-limit → Mitigates brute-force attacks
mongoose-encryption → Adds encryption for MongoDB fields
(The tool will suggest packages based on what’s detected in your project.)🤝 Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
📜 License
MIT License © 2026 Parth
