Check the npm registry for the latest version of a package.
The npm package name (e.g., '@karmaniverous/jeeves').
Directory to store the cache file.
Cache TTL in seconds (default 3600).
The latest version string, or undefined if the check fails.
Check the npm registry for the latest version of a package.