Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
node.js implementation of the varnish telnet management protocol (https://www.varnish-cache.org/trac/wiki/ManagementPort)
JavaScript
branch: master

README.md

node-varnish

A node.js connector to Varnish using the Varnish telnet management protocol.

var Varnish = require('node-varnish');

var client = new Varnish.VarnishClient('127.0.0.1', MANAGEMENT_PORT[, secret]);
client.on('ready', function() {
    client.run_cmd('purge obj.http.X == test', function(){});
});

For more usage examples, see the tests.

Install

npm install node-varnish

Dependencies

Contributors

Something went wrong with that request. Please try again.