Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 568 Bytes

readme.md

File metadata and controls

34 lines (19 loc) · 568 Bytes

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