node-beanstalkd-client
A low-level* beanstalkd client for Node.js. Inspired by the great work on fivebeans but updated to ES6 and promises.
* The client will handle connections and command request/responses, but does not setup everything required to run workers.
For a high level beanstalkd worker client, see node-beanstalkd-worker
Install
$ npm install --save beanstalkd
Usage
; const beanstalkd = host port; beanstalkd;
Commands
All beanstalkd commands are implemented per the protocol. Method names are the same as beanstalk command names camelCased, list-tubes-watched becomes listTubesWatched.
Extending
Beanstalkd.prototype.protocol|beanstalkd.protocol
exposes the internal instance of beanstalkd-protocol
used for command building and reply parsing.
Beanstalkd.addCommand(command, expectedResponse)
lets you add new commands.
; Beanstalkdprototypeprotocol;Beanstalkdprototypeprotocol;Beanstalkdprototypeprotocol;Beanstalkdprototypeprotocol;Beanstalkd;
Debugging
Use DEBUG=beanstalkd*
to enable verbose debugging.