App::ListNewCPANDists - List new CPAN distributions in a given time period
This document describes version 0.007 of App::ListNewCPANDists (from Perl distribution App-ListNewCPANDists), released on 2018-03-12.
Usage:
list_monthly_new_cpan_dists(%args) -> [status, msg, result, meta]
List new CPAN distributions in a given month.
Like list_new_cpan_dists but you only need to specify month and year instead of starting and ending time period.
list_new_cpan_dists
This function is not exported.
Arguments ('*' denotes required arguments):
month* => int
year* => int
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
list_monthly_new_cpan_dists_html(%args) -> [status, msg, result, meta]
List new CPAN distributions in a given month (HTML format).
Like list_monthly_new_cpan_dists but produces HTML table instead of data structure.
list_monthly_new_cpan_dists
list_new_cpan_dists(%args) -> [status, msg, result, meta]
List new CPAN distributions in a given time period.
This utility queries MetaCPAN to find out what CPAN distributions are new in a given time period (i.e. has their first release made during that time period). This utility also collects the information in a SQLite database which defaults to ~/cpan/index-lncd.db or ~/index-lncd.db if ~/cpan~ does not exist. You can customize the location of the generated SQLite database using the cpan and db_name arguments.
~/cpan/index-lncd.db
~/index-lncd.db
~/cpan~
cpan
db_name
cpan => dirname
Location of your local CPAN mirror, e.g. /path/to/cpan.
Defaults to ~/cpan. This actually does not need to be a real CPAN local mirror, but can be just an empty directory. If you use happen to use App::lcpan, you can use the local CPAN mirror generated by lcpan (which also defaults to ~/cpan) to store the database.
~/cpan
db_name => filename (default: "index-lncd.db")
Filename of database.
from_time* => date
to_time => date
Please visit the project's homepage at https://metacpan.org/release/App-ListNewCPANDists.
Source repository is at https://github.com/perlancar/perl-App-ListNewCPANDists.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-ListNewCPANDists
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018, 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::ListNewCPANDists, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ListNewCPANDists
CPAN shell
perl -MCPAN -e shell install App::ListNewCPANDists
For more information on module installation, please visit the detailed CPAN module installation guide.