Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gerrit-event-emitter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gerrit-event-emitter

A thin wrapper of gerrit-stream.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

gerrit-event-emitter Build Status

A thin wrapper of gerrit-stream for Node.js.

Getting Started

Install the module with: npm install gerrit-event-emitter

var GerritEventEmitter = require('gerrit-event-emitter').GerritEventEmitter,
    gerritEventEmitter = new GerritEventEmitter('gerrit.example.com', 29418);

gerritEventEmitter.on('patchsetCreated', function(eventData) {
  // do something.
});
gerritEventEmitter.start() // start gerrit-stream process.

Documentation

The GerritEventEmitter class inherited from EventEmitter2. So you can use EventEmitter2 methods basically.

Constructor

new GerritEventEmitter(host, port, [, enabledAutoRestart ]);

Available events

  • patchsetCreated
  • changeAbandoned
  • changeRestored
  • changeAbandoned
  • changeRestored
  • changeMerged
  • commentAdded
  • refUpdated
  • gerritStreamWrite
  • gerritStreamEnd

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • 2019-03-09   v0.2.0   Fix the failure to parse a JSON string sometimes.
  • 2014-07-29   v0.1.5   Fix process stop bug
  • 2014-04-28   v0.1.4   Support auto restart and gerrit-stream events.
  • 2014-04-19   v0.1.3   Add start/stop methods.
  • 2014-04-19   v0.1.2   Fix dependencies.
  • 2014-04-18   v0.1.1   First release.

License

Copyright (c) 2014 Shogo Iwano Licensed under the MIT license.

Keywords

FAQs

Package last updated on 09 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc