Skip to content
Node.js client for beanstalkd
JavaScript CoffeeScript
Find file
Latest commit b154d86 @benlund tweaked readme
Failed to load latest commit information.
lib added error arg to the calback data
test added package.json
README tweaked readme
package.json added package.json


Beanstalkd Client for Node.js

Version: 0.2.0


var client = require('beanstalk_client').Client;

client.connect('', function(err, conn) {
  var job_data = {"data": {"name": "node-beanstalk-client"}};
  conn.put(0, 0, 1, JSON.stringify(job_data), function(err, job_id) {
    console.log('put job: ' + job_id);

    conn.reserve(function(err, job_id, job_json) {
      console.log('got job: ' + job_id);
      console.log('got job data: ' + job_json);
      console.log('module name is ' + JSON.parse(job_json);
      conn.destroy(job_id, function(err) {
	console.log('destroyed job');


Try it:

$ node test/test.js

See also:



$ npm install beanstalk_client
Something went wrong with that request. Please try again.