Skip to content

ez0000001000000/dependency-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency-Sentry 🛡️

npm version License: MIT PRs Welcome

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-sentry

Use 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-sentry

Or use it directly with npx without installation:

npx dep-check

Usage 🚀

Basic Usage

Run dep-check in your project directory to check for outdated and vulnerable dependencies:

dep-check

Options

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 command

Examples

Check for security vulnerabilities only:

dep-check --security

Check for outdated packages only:

dep-check --outdated

Update all outdated dependencies without prompts:

dep-check --update

Run in CI mode (non-interactive):

dep-check --ci

As an npm script

Add to your package.json:

{
  "scripts": {
    "check-deps": "dep-check"
  }
}

Then run:

npm run check-deps

CI/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 --ci

Contributing 🤝

Contributions are welcome! Here's how you can help:

  1. Report bugs - Open an issue to report any bugs you find
  2. Suggest features - Have an idea? Share it in the issues
  3. 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, and npm audit
  • Built with ❤️ and JavaScript

Made with Node.js and Commander.js