Securely is a CLI tool that helps developers to optimize and analyze their project's security issues and performance pitfalls more efficiently.
The goal of this project is to dive into CLI tooling using Node js and to learn how to build a CLI tool from scratch.
- CLI Argument Parsing,
- Build and Measure Performance,
- Analyze your project's health,
- Check for security vulnerabilities,
- Optimize build performance,
- Automatically detects your project type (Vite or Webpack) and provides insights about:
- Bundle sizes
- Build times
- Dependency health
- Security Checks
npm install -g securely
securely test # Analyze your project's health
securely audit # Check for NPM audit vulnerabilities
securely secure-check # Check for security vulnerabilities
securely test
securely audit
securely secure-check
securely test --help
securely audit --help
securely secure-check --help
Securely is MIT licensed.
Pull requests are welcome. For contributions, please create a new branch and submit a pull request for review.
Please make sure you have vite or webpack installed on your system.
Once you have vite or webpack installed, you can run securely
test to analyze your project's health and check for security vulnerabilities.
- ajv: Fast JSON Schema validator for validating data structures.
- better-ajv-errors: Enhances AJV error messages for better readability.
- chalk: Library for styling terminal string output with colors.
- cli-table3: Easy-to-use table generation for command-line interfaces.
- cosmiconfig: Configuration loader for various formats (JSON, YAML, etc.).
- debug: Utility for enabling/disabling debug output in applications.
- pidusage: Retrieves CPU and memory usage of a process.
- pkg-up: Finds the nearest
package.json
file in the directory hierarchy.
- @babel/parser: Parses JavaScript code into an Abstract Syntax Tree (AST).
- @babel/traverse: Traverses and manipulates the AST for code analysis and transformation.
- 🔍 Scanning for vulnerable dependencies
- 📦 Suggesting package updates
- 📚 Providing security best practices
- 📊 Monitoring npm audit results