ZAProxy Client API for Node.js. Generated using the ZAProxy API generator. API version is 2.4.
Install with:
npm install zaproxy
Example:
var options = { proxy: 'http://localhost:8080' };
var ZapClient = require('zaproxy');
var zaproxy = new ZapClient(options);
zaproxy.core.sites(function (err, resp) {
resp.sites.forEach(function (site) {
// do something with the site
});
});
For a full API list, see https://github.com/zaproxy/zaproxy/wiki/ApiGen_Index.
The Node.js API methods have the same signature as the API documentation, except that they all take a callback as their last parameter. The callback will be called with error and response arguments, with the response being an object that corresponds to the JSON output of the API call.