All Projects → fent → npm-updates

fent / npm-updates

Licence: MIT license
Emits update events from the npm repository.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to npm-updates

redis-registry
Service registry and discovery for Node.js on top of Redis
Stars: ✭ 26 (+62.5%)
Mutual labels:  registry
craneoperator
Gives you a simple web interface for browsing around a Docker Registry
Stars: ✭ 116 (+625%)
Mutual labels:  registry
WDD-scripts
PowerShell scripts that add features to WinDynamicDesktop
Stars: ✭ 50 (+212.5%)
Mutual labels:  registry
module-dependents
Get the list of npm modules that depend on the specified npm module.
Stars: ✭ 15 (-6.25%)
Mutual labels:  registry
xmutca-rpc
Xmutca-rpc是一个基于netty开发的分布式服务框架,提供稳定高性能的RPC远程服务调用功能,支持注册中心,服务治理,负载均衡等特性,开箱即用。
Stars: ✭ 18 (+12.5%)
Mutual labels:  registry
nxt registry
A simple registry to implement the container pattern
Stars: ✭ 16 (+0%)
Mutual labels:  registry
Datbase
[DEPRECATED] Open data sharing powered by Dat
Stars: ✭ 251 (+1468.75%)
Mutual labels:  registry
Windows-10-tweaks
This repo contains multiple scripts to optimize windows 10
Stars: ✭ 37 (+131.25%)
Mutual labels:  registry
brazil-civil-registry-data
Raw scrapings of ARPEN https://transparencia.registrocivil.org.br/
Stars: ✭ 35 (+118.75%)
Mutual labels:  registry
srclient
Golang Client for Schema Registry
Stars: ✭ 188 (+1075%)
Mutual labels:  registry
Windows11-betterUX
A non-destructive registry preset to improve the default user-experience with windows 10.
Stars: ✭ 21 (+31.25%)
Mutual labels:  registry
anthology
A private Terraform registry implementation as an alternative to the official registry.
Stars: ✭ 112 (+600%)
Mutual labels:  registry
available
Scan npm for available package names
Stars: ✭ 98 (+512.5%)
Mutual labels:  registry
security-holder
An npm package that holds a spot.
Stars: ✭ 141 (+781.25%)
Mutual labels:  registry
IOBrowser
A macOS application for browsing the IOKit registry.
Stars: ✭ 123 (+668.75%)
Mutual labels:  registry
Alexandrie
An alternative crate registry, implemented in Rust.
Stars: ✭ 251 (+1468.75%)
Mutual labels:  registry
regln
Windows Rregistry Linking Utility
Stars: ✭ 38 (+137.5%)
Mutual labels:  registry
yrs
Yarn registry switch tool
Stars: ✭ 12 (-25%)
Mutual labels:  registry
Reg2CI
Create System Center Configuration manager ConfigItem (CI's) from a .reg (Registry) or a .pol (Policy) file.
Stars: ✭ 74 (+362.5%)
Mutual labels:  registry
secret config
Centralized Configuration and Secrets Management for Ruby and Rails applications.
Stars: ✭ 15 (-6.25%)
Mutual labels:  registry

npm-updates

Emits update events from the npm repository, or any node modules repository.

Dependency Status codecov

Usage

const NPM = require('npm-updates');
const npm = new NPM();

npm.on('update', (info) => {
  console.log('package', info.name, 'was updated to v' + info.version);
});

npm.on('new', (info) => {
  console.log('new module!', info.name);
});

API

new NPM([options])

Creates a new instance. options can have

  • autoStart - Defaults to true. Will auto start requesting the registry for updates. If disabled, you can use start().
  • uri - You can set the couchdb registry uri that it checks with this.

NPM#start()

Starts receiving updates.

NPM#stop()

Stops requesting updates and emitting events.

Event: 'change'

  • Object

Change events from the couchdb _changes feed.

{ seq: 99230,
  id: 'newsemitter',
  changes: [ { rev: '5-aca7782ab6beeaef30c36b888f817d2e' } ] }

Event: 'new'

  • Object - Info.

First version of module published. info is equivalent to its package.json contents.

Event: 'update'

  • Object - Info.

Module is updated to a newer version. info is equivalent to its package.json contents.

Event: 'publish'

  • Object - Info.

Emitted for both new and update events. info is equivalent to its package.json contents.

Event: 'delete'

  • string - Name.

Module was deleted from the registry.

Install

npm install npm-updates

Tests

Tests are written with mocha

npm test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].