MetaCPA...complete(3)

πŸ“¦
version 0.51 Β· 2 versions
, in fedora 43

🌸 NAME 🌸

MetaCPAN::API::Autocomplete β€” literally just autocompletion info for MetaCPAN::API, bestie πŸ’…


✨ VERSION ✨

version 0.51 πŸŽ€


πŸ’– DESCRIPTION πŸ’–

okay so this role is the glow-up that gives MetaCPAN::API the power to go fetch autocomplete info. that's it, that's the whole vibe. it's giving "small but essential," fr fr πŸ¦‹


πŸ‘‘ METHODS πŸ‘‘

πŸ“ autocomplete

the main character, the moment, the one you came here for:

my $result = $mcpan->autocomplete(
    search => {
        query => 'Moose',
    },
);

so by default? you get 20 results, and that's the max, periodt. no more, no less (well, up to 20, iykyk).

but if you're feeling greedy and want more, you can also pass size in there like so:

my $result = $mcpan->autocomplete(
    search => {
        query => 'Moose',
        size  => 30,
    },
);
heads up bestie: there is a hardcoded limit of 100 results β€” and it's hardcoded in MetaCPAN, not here. so no matter how cute you ask, 100 is the ceiling. don't fight it, the limit ate πŸ”₯

what does it actually do? it searches MetaCPAN for autocompletion info. simple as that, no cap πŸ’œ


🫢 AUTHOR 🫢

Sawyer X <xsawyerx@cpan.org> β€” the icon who made this happen πŸ‘‘


This software is copyright (c) 2011 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay πŸ’–


and that's the whole page, bestie ✨ this was perl v5.42.0, dated 2025-07-25, and the manual page is MetaCPA...complete(3) β€” yes the name is chaotic, we love her anyway πŸŽ€πŸ’…

πŸ“¦ where this page comes from