Prevoty node.js SDK
Overview
The Prevoty REST API is the easiest way for individuals and organizations to prevent Cross-Site Scripting (XSS), SQL Injection (SQLi), and Cross-Site Request Forgery (CSRF) attacks in their web applications. The API has been designed to provide simple access to the powerful content analysis systems and intelligence tools that Prevoty has developed.
Node.js bindings
Prevoty has developed a node.js library to protect web applications quickly and easily. The node.js library depends on request
.
Get Started
To get started:
- Run "npm install prevoty" or add
"prevoty": ">=1.1.1"
OR
"prevoty-nodejs": "*"
to your package.json file and run "npm install"
-
Make sure you have a v1 API key (shown at the bottom of the API Keys page in Prevoty Manager Console)
-
Edit
examples/example.js
- you will want to put in your API and configuration policy keys (from the Security Policies page in Prevoty Manager Console, not to be confused with the keys from the Plugin Configurations page) -
Run
node examples/example.js
Issues
Feel free to file an issue or send us a pull request.