Skip to content

Jirapo/check-npm-registry

Repository files navigation

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

About

check the fastest given npm registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages