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

feathers-bee-queue

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-bee-queue

A Feathers service adapter for Bee-Queue jobs

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

feathers-bee-queue

Build Status Code Climate Test Coverage Dependency Status Download Status

A Feathers service adapter for Bee-Queue jobs.

Installation

npm install --save feathers-bee-queue bee-queue

Documentation

service([options])

Returns a new service instance initialized with the given options.

Important: feathers-bee-queue implements the Feathers Common database adapter API and querying syntax.

const queueService = require('feathers-bee-queue');
app.use('/messages', queueService({ id, startId, queue, events, paginate }));

Options:

  • queue - A Bee-Queue queue instance
  • events (optional) - A list of custom service events sent by this service. Must be one or more of the following:
    • succeeded
    • retrying
    • failed
    • progress
  • paginate (optional) - A pagination object containing a default and max page size
  • multi (optional) - Allow create with arrays and remove with id null to change multiple items. Can be true for all methods or an array of allowed methods (e.g. [ 'remove', 'create' ])

Complete Example

Here's an example of a Feathers server that uses feathers-bee-queue.

const feathers = require('@feathersjs/feathers');
const queueService = require('feathers-bee-queue');
const Queue = require('bee-queue');

// Initialize the application
const app = feathers();

// Initialize the plugin
app.use('/my-queue', queueService({
  queue: new Queue('my-queue')
}));

License

Copyright (c) 2018

Licensed under the MIT license.

Keywords

FAQs

Package last updated on 26 Jun 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