JSPM

@qiwi/npm-registry-client

8.9.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48583
  • Score
    100M100P100Q158343F
  • License ISC

Client for the npm registry

Package Exports

  • @qiwi/npm-registry-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@qiwi/npm-registry-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@qiwi/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.