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

crane

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

crane

Diligent work queue for Node.js.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

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

Crane

Build Coverage Quality Dependencies Tips

Crane is a message queue middleware layer for Node. Applications can be constructed by using middleware and defining routes.

This architecture has been proven effective by Express, which provides HTTP middleware. Crane adopts this approach, repurposing it for use with message queues, allowing workers to be built quickly and easily, using patterns familiar to Node.js developers.

Install

$ npm install crane

Usage

var crane = require('crane');
var app = crane();

app.work('tasks/email', function(msg, next) {
  console.log('sending email to: ' + msg.body.to);
  msg.ack();
});

Adapters

Adapters are used to connect to message queues, receiving messages and dispatching those messages to the application for processing.

The following table lists commonly used strategies:

AdapterDeveloper
AMQPJared Hanson

Tests

$ npm install
$ make test

Credits

License

The MIT License

Copyright (c) 2011-2014 Jared Hanson <http://jaredhanson.net/>

Keywords

FAQs

Package last updated on 01 Apr 2014

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