pm-deps - Fetch and show dependencies of CPAN module
https://metacpan.org/release/App-pmdeps
https://github.com/moznion/App-pmdeps
I released pm-deps (App::pmdeps) to CPAN.
What's this?
This script can fetch and show dependencies of CPAN module by using metacpan API.
And it can also show dependencies of modules that is on your local environment (e.g. the awesome module in the middle of development).
The example of use
Fetch dependencies of latest `Test::Most`
$ pm-deps Test::Most Target: perl-5.016003 Depends on 3 core modules: Module::Build Test::Harness Test::More Depends on 6 non-core modules: Data::Dumper::Names Exception::Class Test::Deep Test::Differences Test::Exception Test::Warn
Fetch dependencies of `Test::Most` (version 0.10)
$ pm-deps Test::Most 0.10 Target: perl-5.016003 Depends on 2 core modules: Test::Harness Test::More Depends on 4 non-core modules: Test::Deep Test::Differences Test::Exception Test::Warn
Fetch dependencies of `Test::Most` (specify target perl version 5.008001)
$ pm-deps --perl-version 5.008001 Test::Most Target: perl-5.008001 Depends on 2 core modules: Test::Harness Test::More Depends on 7 non-core modules: Data::Dumper::Names Exception::Class Module::Build Test::Deep Test::Differences Test::Exception Test::Warn
(This script will employ current used perl version if `--perl-version` option is missing.)
Fetch dependencies of the module that is on local environment
$ pm-deps --local /path/to/App-pmdeps Target: perl-5.016003 Depends on 6 core modules: CPAN::Meta CPAN::Meta::Prereqs Getopt::Long Module::Build Module::CoreList Term::ANSIColor Test::More Depends on 9 non-core modules: Capture::Tiny Furl JSON Test::CPAN::Meta Test::MinimumVersion Test::MockObject::Extends Test::Perl::Critic Test::Pod Test::Spellunker
(In this case, this script refers to the META.json or the MYMETA.json)
If there is anything unclear please tell me that.
Enjoy!
※日本の方はこちらを読むと良いと思います。
http://d.hatena.ne.jp/moznion/20130617/1371492289