Skip to content

pnpm/npm-registry-client

This branch is 39 commits ahead of npm/npm-registry-client:latest.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2ca6fcd · Feb 10, 2025
Dec 20, 2021
Feb 10, 2025
Nov 30, 2020
Nov 30, 2020
Apr 2, 2021
Jul 31, 2014
Feb 10, 2025
Apr 2, 2021
Apr 26, 2017
Feb 10, 2025
Feb 10, 2025
Feb 10, 2025

Repository files navigation

anonymous-npm-registry-client

The fork of npm/npm-registry-client that fixes the most vulnerabilities, brings deps from 2020 and adds some typings.

Install

npm i @qiwi/npm-registry-client
yarn add @qiwi/npm-registry-client

Usage

var RegClient = require('@qiwi/npm-registry-client')
var client = new RegClient(config)
var uri = "https://registry.npmjs.org/npm"
var params = {timeout: 1000}

client.get(uri, params, function (error, data, raw, res) {
  // error is an error if there was a problem.
  // data is the parsed data object
  // raw is the json string
  // res is the response from couch
})

See original docs for details.