dependency-sentry
v1.0.12
Published
A powerful dependency checker and updater for Node.js projects
Maintainers
Readme
Dependency-Sentry 🛡️
A powerful dependency checker and updater for Node.js projects that helps you keep your dependencies up-to-date and secure.
📦 Installation
Global Installation
npm install -g dependency-sentry
# or
yarn global add dependency-sentry
# or
pnpm add -g dependency-sentryUse with npx (no installation required)
npx dep-check🚀 Quick Start
Run dep-check in your project directory to check for outdated and vulnerable dependencies:
dep-check📁 Repository
📁 GitHub: https://github.com/ez0000001000000/dependency-sentry
📦 npm: https://www.npmjs.com/package/dependency-sentry
Features ✨
- 🔍 Check for outdated dependencies - See which packages have newer versions available
- 🚨 Vulnerability scanning - Identify known security vulnerabilities in your dependencies
- ⚡ Interactive updates - Selectively update packages with an easy-to-use interface
- 🔄 Multiple package manager support - Works with npm, Yarn, and pnpm
- 🛡️ Security first - Highlights critical security issues
- 🎨 Beautiful CLI output - Color-coded and easy to read
- 🤖 CI/CD friendly - Can be used in automated environments
Installation 📦
You can install dep-sentry globally to use it across all your projects:
npm install -g dep-sentry
# or
yarn global add dep-sentry
# or
pnpm add -g dep-sentryOr use it directly with npx without installation:
npx dep-checkUsage 🚀
Basic Usage
Run dep-check in your project directory to check for outdated and vulnerable dependencies:
dep-checkOptions
Usage: dep-check [options]
Options:
-V, --version output the version number
-c, --ci Run in CI mode (non-interactive)
-u, --update Automatically update all dependencies
-s, --security Check for security vulnerabilities only
-o, --outdated Check for outdated packages only
-h, --help display help for commandExamples
Check for security vulnerabilities only:
dep-check --securityCheck for outdated packages only:
dep-check --outdatedUpdate all outdated dependencies without prompts:
dep-check --updateRun in CI mode (non-interactive):
dep-check --ciAs an npm script
Add to your package.json:
{
"scripts": {
"check-deps": "dep-check"
}
}Then run:
npm run check-depsCI/CD Integration 🔄
You can integrate dep-check into your CI/CD pipeline to fail builds when vulnerabilities are found:
# .github/workflows/security-check.yml
name: Security Check
on: [push, pull_request]
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Run security check
run: npx dep-check --ciContributing 🤝
Contributions are welcome! Here's how you can help:
- Report bugs - Open an issue to report any bugs you find
- Suggest features - Have an idea? Share it in the issues
- Submit pull requests - Help improve the codebase
License 📄
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments 🙏
- Inspired by tools like
npm-check,yarn outdated, andnpm audit - Built with ❤️ and JavaScript
Made with Node.js and Commander.js
