% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dt2_check_updates.R
\name{.npm_latest_in_range}
\alias{.npm_latest_in_range}
\title{Fetch the latest version of an npm package within a version prefix}
\usage{
.npm_latest_in_range(pkg, prefix)
}
\arguments{
\item{pkg}{npm package name}

\item{prefix}{version prefix, e.g. \code{"3."} or \code{"0.2."}}
}
\value{
version string or NA
}
\description{
Queries the full package metadata from npm and extracts all version
strings, then returns the highest version that starts with \code{prefix}.
}
\keyword{internal}
