New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vulpes-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vulpes-client

JavaScript job worker client for the Vulpes platform

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

Vulpes Client

JavaScript job worker client for the Vulpes platform

About

Vulpes is a job management platform that requires workers to check for and receive work, and then for them to submit a result after attempting to do the work. Vulpes Client provides a simple API with which to perform these worker operations.

Usage

Usage is quite simple - create a Worker instance, connect it to a Vulpes API endpoint and start listening:

const { RemoteConnector, Worker } = require("vulpes-client");

const worker = new Worker(new RemoteConnector(API_URI));
worker.on("job", payload => startJob(payload.job));

Worker is an EventEmitter, and it emits job events when a job is ready to start. It will not emit more job events if a job is currently running on the worker. You can stop/complete a job by calling Job#stop with a result type and result payload.

Check out the API documentation for more information on class usage.

Keywords

vulpes

FAQs

Package last updated on 23 Apr 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