Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to check update for particular npm package using rss/atom or other similar way?

I found only this thread when an user ask similar question but without answer. ( https://github.com/npm/npm-registry-couchapp/issues/17 )

I know two sites that are repositories of NPM packages:

  • https://www.npmjs.com
  • http://libraries.io

And I can't find a way to obtain an rss for single package in a way like it is done for github or sourceforge:

  • https://github.com/<author_name>/<package_name>/releases.atom
  • http://sourceforge.net/projects/<project_name>/rss?limit=20

And yes, i know that I might check what is the github repository for given NPM and do it that way, but I specifically ask for a way to reach this info from some kind of NMP repository that tracks if a given package changed its git address (not necessarily these two I added here as example.)

It is hard to find these tricks by google because it thinks I'm searching for some kind of NPM package that deals with RSS/ATOM.

like image 651
rsk82 Avatar asked Apr 24 '15 13:04

rsk82


People also ask

How do I check for npm updates?

npm-check-updatesRunning the "ncu" command inside your project directory will display all possible updates to your solution. Running "ncu –u" will update all packages to the latest version in package. json file. Run "npm install" after it finishes to install the dependencies.

How do I know if an npm package is outdated?

Here is the tip: run npm outdated from the terminal in your project folder to see if the installed packages are outdated. npm outdated is a built-in npm command and you don't have to install any additional packages for it.

Which command helps in updating npm package?

Method 1: Using npm update command to update the node package manager. Method 2: Using npm@latest command to update the node package manager. Method 3: Using PPA repository (only for Linux). Method 4: Using cache cleaning & stable installing (only for Linux).


2 Answers

I've recently added a release atom feed to all packages on libraries.io, simply add /versions.atom to the end of any project page url, for example:

https://libraries.io/npm/node-sass/versions.atom

With npm modules it should never be more than 10 minutes delayed in showing the newest version.

like image 53
Andrew Nesbitt Avatar answered Oct 08 '22 15:10

Andrew Nesbitt


You need to hit your requests against an NPM registry, i.e. https://registry.npmjs.org/-/rss.

For single packages, the URL should be https://registry.npmjs.org/-/rss/browserfiy, but the responses aren't being constructed correctly at the time of writing.

Alternatively, you could go for a JSON response, i.e. https://registry.npmjs.org/browserify. For a more programmatic way of accessing package details, you can use npm-registry-client.

like image 35
Filip Dupanović Avatar answered Oct 08 '22 13:10

Filip Dupanović