New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dep-insight-cli

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dep-insight-cli

A powerful CLI tool for managing npm packages, checking dependencies, analyzing sizes, and ensuring license compliance.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-10%
Maintainers
0
Weekly downloads
 
Created
Source

dep-insight-cli

A powerful CLI tool for managing npm packages, checking dependencies, analyzing sizes, and ensuring license compliance.

Features

  • Package Analysis: Deep insights into package sizes, dependencies, and structure
  • Dependency Management: Track and analyze your project's dependencies
  • License Compliance: Check and verify package licenses
  • Size Analysis: Analyze package sizes and their impact
  • Script Management: List and manage npm scripts

Installation

npm install -g dep-insight-cli

Quick Start

You can use either dep (shorter) or dep-insight (full name) as the command:

# Using dep (shorter)
dep analyze express
dep size react
dep tree next

# Using dep-insight (full name)
dep-insight analyze express
dep-insight size react
dep-insight tree next

Available Commands

Package Analysis

dep analyze [package]     # Analyze a package's structure and dependencies
dep size [package]        # Check package size and dependencies
dep info [package]        # Show detailed package information

Dependency Management

dep deps [package]        # List and analyze dependencies
dep tree [package]        # Display dependency tree
dep graph [package]       # Generate dependency graph visualization
dep outdated [package]    # Check for outdated dependencies

Security & Compliance

dep audit [package]       # Run security audit
dep licenses [package]    # Check licenses of package and its dependencies

Statistics & Comparison

dep stats [package]       # Show download statistics and trends
dep compare <pkg1> <pkg2> # Compare two packages

Script Management

dep scripts [package]     # List and manage npm scripts

Version Management

  • Package Compatibility: dep check [package]

    • Project-wide analysis (when no package specified):
      • Check all dependencies for compatibility
      • Identify outdated packages
      • Detect incompatible versions
      • Auto-fix capability
    • Single package analysis:
      • Node.js version compatibility
      • npm version compatibility
      • Framework compatibility (React, Angular, Vue)
      • Peer dependencies check
      • Package size and download stats
    • Interactive installation
    # Check all project dependencies
    dep check
    
    # Check with auto-fix option
    dep check --fix
    
    # Deep analysis including dev dependencies
    dep check -d
    
    # Check specific package
    dep check express
    
    # Check specific version
    dep check react -v 16.8.0
    
    # Get JSON output
    dep check vue --json
    
    # Non-interactive mode
    dep check lodash --no-interactive
    

Options

Most commands support the following options:

--json                  # Output in JSON format
--depth <number>        # Specify dependency tree depth
--dev                   # Include devDependencies
--prod                  # Include only dependencies
--format <format>       # Output format (table/json/tree)

Examples

Analyze a Package

dep analyze express

Check Package Size

dep size react --format table

View Dependency Tree

dep tree next --depth 2

Compare Two Packages

dep compare react vue

Check Package Licenses

dep licenses express --json

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT Hiren Vaishnav,

Keywords

FAQs

Package last updated on 24 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc