Perl6::Ecosystem - Obtains information from Perl6 modules in the ecosystem
use Perl6::Ecosystem;
my $eco = Perl6::Ecosystem.new;
say $eco.modules;
say $eco.depended;
say $eco.depends-on;
Module and scripts for obtaining information on the dependency graph among Perl 6 modules.
This module works on the Toast database. You will need to download it
first and place it on the data/
directory; it comes with a (possibly
outdated) version of it.
Creates the object, downloading and filling it with information. Error output goes to /tmp/perl6-eco-err.txt
Returns a hash
with module names, dependencies and URLs.
Returns a hash
with module names and the number of other modules it depends on.
Returns a hash
with module names and its dependencies.
Computes the "river-score" by looking at all dependency chains and giving a score according to the position. That is, if there's this dependenci chain
Foo → Bar → Baz
Foo will have a 0 score for appearing in the first position, up to Baz which will have score equal to 2. The total score of every module is computed by adding all scores.
Alex Daniel, JJ Merelo jjmerelo@gmail.com
Copyright 2018 Alex Daniel, JJ Merelo
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.