https://github.com/binarymist/zaproxy-wip
https://github.com/binarymist/zaproxy-wip
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/binarymist/zaproxy-wip
- Owner: binarymist
- License: mit
- Created: 2018-05-14T22:24:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T12:36:26.000Z (over 7 years ago)
- Last Synced: 2025-01-20T22:12:31.166Z (about 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-zaproxy
============
ZAProxy Client API for Node.js. Generated using the ZAProxy API
generator. API version is 2.4.
## Getting Started
Install with:
npm install zaproxy
## Usage
Example:
```js
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
});
});
```
## API
For a full API list, see [https://github.com/zaproxy/zaproxy/wiki/ApiGen_Index](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.