check-npm-registry
v1.0.4
Published
check the quickest registry
Downloads
57
Readme
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