@ngx-maintenance/npm-api
v0.1.1
Published
## Overview @ngx-maintenance/npm-api is a strongly typed API SDK for the npm registry API, providing easy access to various endpoints and functionalities.
Downloads
4
Readme
@ngx-maintenance/npm-api
Overview
@ngx-maintenance/npm-api is a strongly typed API SDK for the npm registry API, providing easy access to various endpoints and functionalities.
Installation
To install @ngx-maintenance/npm-api, simply run:
npm install @ngx-maintenance/npm-api
Usage
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');