1Menlo::Index::MetaCPAN(U3s)er Contributed Perl DocumentatMieonnlo::Index::MetaCPAN(3)
2
3
4

SYNOPSIS

6         use CPAN::Common::Index::MetaCPAN;
7
8         $index = CPAN::Common::Index::MetaCPAN->new({ include_dev => 1 });
9         $index->search_packages({ package => "Moose", version => "1.1" });
10         $index->search_packages({ package => "Moose", version_range => ">= 1.1, < 2" });
11

DESCRIPTION

13       This module implements a CPAN::Common::Index that searches for packages
14       against the MetaCPAN API.
15
16       This backend supports searching modules with a version range (as
17       specified in CPAN::Meta::Spec) which is translated into MetaCPAN search
18       query.
19
20       There is also a support for dev release search, by passing
21       "include_dev" parameter to the index object.
22
23       The result may include an optional field "download_uri" which suggests
24       a specific mirror URL to download from, which can be "backpan.org" if
25       the archive was deleted, or "cpan.metacpan.org" if the release date is
26       within 1 day (because some mirrors might not have synced it yet).
27
28       There is no support for searching packages with a regular expression,
29       nor searching authors.
30
31
32
33perl v5.32.1                      2021-01-27         Menlo::Index::MetaCPAN(3)
Impressum