Menlo:...taCPAN(3pm)

πŸ“¦
version 1.9019 Β· 7 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Menlo::Index::MetaCPAN β€” bestie, it's literally a search index via MetaCPAN ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so this is the whole vibe, copy it exactly bestie:

use CPAN::Common::Index::MetaCPAN;

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

🌸 DESCRIPTION 🌸

So this module implements a CPAN::Common::Index that goes and searches for packages against the MetaCPAN API. No cap, that's the whole job 🫢

This backend supports searching modules with a version range β€” as specified in CPAN::Meta::Spec β€” and it translates that range into a MetaCPAN search query. The way that it just... handles your ranges for you? Iconic πŸ’…

There's also support for dev release search, and you get it by passing the "include_dev" parameter to the index object. So easy, fr fr ✨

The result may include an optional field called "download_uri", which suggests a specific mirror URL to download from. And get this β€” it can be "backpan.org" if the archive was deleted 😭, or "cpan.metacpan.org" if the release date is within 1 day (because some mirrors might not have synced it yet πŸ™ˆ).

okay bestie, real talk: there is no support for searching packages with a regular expression, and no support for searching authors. That's just how it is. Periodt πŸ’€

<div align="center">πŸŽ€</div>

okay that's the whole page, mwah πŸ’– this was perl v5.36.0 energy, dated 2022-12-13, and it's part of your User Contributed Perl Documentation β€” go slay, bestie πŸ‘‘πŸ¦‹β­

πŸ“¦ where this page comes from