Node.js SDK to fetch data from the npm API.
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @nodesecure/npm-registry-sdk
# or
$ yarn add @nodesecure/npm-registry-sdk
import Registry from "@nodesecure/npm-registry-sdk";
interface NpmRegistryMetadata {
db_name: string;
doc_count: number;
doc_del_count: number;
update_seq: number;
purge_seq: number;
compact_running: boolean;
disk_size: number;
data_size: number;
instance_start_time: string;
disk_format_version: number;
committed_update_seq: number;
}
interface PackumentOptions {
token: string;
}
packumentVersion(name: string, version: string, options?: packumentOptions): Promise<npm.PackumentVersion>
Thanks goes to these wonderful people (emoji key):
Gentilhomme π» π π π‘οΈ π |
Quentin Lepateley π» π π |
Nicolas Hallaert π |
tekeuange23 π» |
MIT