check-npm-registry

1.0.4 • Public • Published

This is a package which can check the fastest npm registry.

install

npm i check-npm-registry -S

Usage

The default registry list is: http://registry.npm.taobao.org, http://registry.npmjs.org.

import checkRegistry from 'check-npm-registry';
 
checkRegistry()
  .then(registry => console.log(registry));
 
 
// param: stirng or array
 
checkRegistry('your_registry_url')
 
checkRegistry([your_registry_url_array])
 

Test

npm run test

/check-npm-registry/

    Package Sidebar

    Install

    npm i check-npm-registry

    Weekly Downloads

    4

    Version

    1.0.4

    License

    ISC

    Last publish

    Collaborators

    • poling