@ngx-maintenance/npm-api is a strongly typed API SDK for the npm registry API, providing easy access to various endpoints and functionalities.
To install @ngx-maintenance/npm-api, simply run:
npm install @ngx-maintenance/npm-api
import { fetchNpmApi, findCompatibleVersion } from '@ngx-maintenance/npm-api';
// Fetch registry information
const registryInfo = await fetchNpmApi('/');
// Find compatible version for a package
const compatibleVersion = await findCompatibleVersion('packageName', 'versionRange', 'peerDependency');