0.4.2 • Published 5 years ago
depcost v0.4.2
depcost
Introduction
depcost (abbr. dc) is a cli tool for you to judge whether a node module deserve your favor via knowing the time and space cost of a dependency.
Features
- With Require time, you will know if the dependency you are using now is likely to slow down your node application.
- With Install size of a dependency, you will know if the dependency is too cumbersome and wastes your disk.
- Quickly specify the latest released versions.
Install
npm install depcost -g
Usage
Using depcost
or its shortcut dc
:
Usage:
$ depcost [...pkgs]
For more info, run any command with the `--help` flag:
$ depcost --help
Options:
-t, --track Whether to keep temp directory.
-r, --latest-versions <latestVersions> Specify the count of latest versions.
-s, --versions <versions> Select specific versions.
-l, --log-level <logLevel> log level of npmlog under the hood.
-n, --npm-client <npmClient> set npm client, defaults to npm.
-d, --debug Shortcut to set log level to "debug".
-h, --help Display this message
-v, --version Display version number
Examples:
depcost [package]
depcost [package] --log-level=info
depcost [package] --debug
depcost [package@version]
depcost [package1] [package2] [package3]
depcost [package] --latest-versions=3
depcost [package] --versions=1.0.0,2.0.0
Global Config
You can set global options at ~/.depcostrc
with ini syntax.
e.g., set npmClient to tnpm
globally:
echo 'npmClient=tnpm' > ~/.depcostrc
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
depcost © ULIVZ under Richlab Team, Released under the MIT License.
0.4.2
5 years ago
0.3.0
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.8
5 years ago
0.1.9
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.4
5 years ago
0.1.5
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago