Group
Extension

Matches 2

NVM-Perl ( J/JH/JHALL/NVM-Perl-1.2.tar.gz, JHALL, 2025; MetaCPAN )
NVM-Perl/lib/NVMPL/Remote.pm ( view source; MetaCPAN )
package NVMPL::Remote;
use strict;
use warnings;
use feature 'say';
use HTTP::Tiny;
use JSON::PP qw(decode_json);
use File::Spec;
use NVMPL::Config;
use NVMPL::Utils qw(log_info log_warn log_error);


    my $cachefile = File::Spec->catfile($install_dir, 'node_index_cache.json');
    my $ttl = $cfg->{cache_ttl};

    my $json_data;
    my $use_cache = 0;

    if (-f $cachefile) {
        my $age =
!";
            local $/;
            $json_data = <$fh>;
            close $fh;
        }
    }

    unless ($use_cache) {
        my $url = "$mirror/index.json";
        log_info("Fetching remote ve
NVM-Perl ( J/JH/JHALL/NVM-Perl-1.2.tar.gz, JHALL, 2025; MetaCPAN )
NVM-Perl/lib/NVMPL/Config.pm ( view source; MetaCPAN )
package NVMPL::Config;
use strict;
use warnings;
use JSON::PP qw(decode_json);
use File::Spec;
use File::HomeDir;
use File::Path qw(make_path);

# Default config locations
my $SYSTEM_CONF = '/etc/nvm-
---------------------------------------------------------------
# Internal helper: read and merge JSON or simple key=value config files
# --------------------------------------------------------------
;

    local $/;
    my $content = <$fh>;
    close $fh;

    my $data;
    eval { $data = decode_json($content) };
    if ($@) {
        for my $line (split /\n/, $content) {
            next if $lin

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.