godot-npm-publish-producer

A producer for godot that emits npm publish events

npm install godot-npm-publish-producer
1 downloads in the last week
4 downloads in the last month

godot-npm-publish-producer

This is a godot producer that wraps npm-publish-stream.

Example:

var godot = require('godot'),
    NpmPublishProducer = require('./index');

godot.createClient({
  type: 'tcp',
  producers: [
    new NpmPublishProducer({
      service: 'npm/publish/stream',
      description: 'npm publish events',
      ttl: 5000
    })
  ]
}).connect(1337);

API:

NpmPublishProducer(options)

Returns a producer. Options are passed to both godot and npm-publish stream.

Using npm-publish-stream's "startTime" is not recommended, since there is currently not a good way to detect when the stream has "caught-up" with real-time, meaning that the metric, which is publishes per second, will be wildly inaccurate.

License:

MIT

npm loves you