/lib/DDG/Spice/MetaCPAN.pm
Perl | 25 lines | 19 code | 5 blank | 1 comment | 1 complexity | 976b4cabc0eacf30d2a84c65f2eef2cf MD5 | raw file
- package DDG::Spice::MetaCPAN;
- # ABSTRACT: Show a summary of the searched CPAN module.
- use DDG::Spice;
- primary_example_queries "metacpan WWW::DuckDuckGo";
- description "Searches CPAN modules";
- name "MetaCPAN";
- code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/MetaCPAN.pm";
- icon_url "/i/metacpan.org.ico";
- topics "programming", "sysadmin";
- category "programming";
- attribution github => ['https://github.com/ghedo', 'ghedo' ],
- web => ['http://ghedini.me', 'Alessandro Ghedini'];
- status "enabled";
- spice to => 'http://api.metacpan.org/v0/module/$1?callback={{callback}}';
- triggers startend => "cpan", "metacpan", "meta cpan";
- handle remainder => sub {
- return $_ if $_;
- return;
- };
- 1;