npm-monitor

0.0.3 • Public • Published

npm-monitor

Monitor the npm registry for changes. Returns an infinite lazy list. Includes a mock for testing.

The list will contain all of the items in the changes feed, so not all of them are going to be npm package changes.

  changes = require('npm-monitor').monitor();

  changes
  .filter(function(seq){
  	return seq.doc && seq.doc["dist-tags"] && seq.doc["dist-tags"].length
  })
  .map(function(seq){
  	return seq.doc;
  })
  .forEach(function(doc){
  	console.log(doc.name+" changed!");
  })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i npm-monitor

Weekly Downloads

4

Version

0.0.3

License

none

Last publish

Collaborators

  • aaronblohowiak