New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bellboy-live-reporter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bellboy-live-reporter

Send bellboy events as requests to the specified server endpoint.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status codecov npm

bellboy-live-reporter

Send bellboy events as requests to the specified server endpoint.

  • Requests never fail because of timeout.
  • If server can't be reached, request retries to send an event until success.

These features and the fact that bellboy job always waits code inside event listener to complete allow job to be executed gradually:

  1. Reporter sends information about event to the server.
  2. Server accepts it, but doesn't response to a request - job is paused.
  3. After some time or because of user interaction server decides to send a response.
  4. Reporter receives response, continues job till the next event and repeats all the steps again.

Installation

npm install bellboy-live-reporter

Usage

const bellboy = require('bellboy');
const LiveReporter = require('bellboy-live-reporter');

(async () => {
    const processor = new bellboy.DynamicProcessor({
        generator: async function* () {
            for (let i = 0; i < 100; i++) {
                yield { hello: `world_${i}` }
            }
        },
    });
    const destination = new bellboy.StdoutDestination();
    const job = new bellboy.Job(processor, [destination], {
        reporters: [
            new LiveReporter(),
        ],
    });
    await job.run();
})();

Options

optiontypedescription
urlstringEndpoint URL where requests will be sent. If not specified, http://localhost:3041 address is used.

Building

You can build js source by using npm run build command.

Testing

Tests can be run by using npm test command.

FAQs

Package last updated on 15 May 2020

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