jprichardson / npm-latest

Quickly find the latest version of a package in npm.
MIT License
12 stars 4 forks source link

Fetch latest version #5

Closed qiu8310 closed 9 years ago

qiu8310 commented 9 years ago

Get more accurate latest version

qiu8310 commented 9 years ago

Of course, you can clone my repo, and then try the cli.js, eg:

git clone https://github.com/qiu8310/npm-latest && cd npm-latest
node bin/cli.js jquery  # always get the latest jquery

You know I'm from china, and I have to use china registry https://registry.npm.taobao.org/, when I use this registry, and use your code, will get the lowest package version.

qiu8310 commented 9 years ago

You can try npm info jquery --registry=https://registry.npm.taobao.org/ and npm info jquery, the result's time property is reverse

jprichardson commented 9 years ago

Thanks for your contribution. Published :)