转载

[工具资源] 命令行查看一个 Node.js 项目依赖的模块

decheck

Checkout the dependencies an NPM module depends on.

Purpose

I always need to browse a module's package.json to find new modules that are used by it.octo-link andnpm-hub both are good but not enough for me, cuz I often use terminal.

[工具资源] 命令行查看一个 Node.js 项目依赖的模块

Install

$ npm install -g decheck

Usage

In the program screen you can use arrow keys or your mouse to scroll content, Vi mode is also supported. Press q or ESC or Ctrl-C to exit program.

$ decheck express  # or check current working project $ decheck .
$ decheck -h    Usage:      decheck <moduleName> [moduleVersion]      -d/--dev:        Check the devDependencies     -r/--registry:   Set custom npm registry     -c/--cn:         Set npm registry to China mirror     -v/--version:    Print version     -h/--help:       Print help

License

MIT ©EGOIST

原文  https://github.com/egoist/decheck
正文到此结束
Loading...