abuseipdb-node-client
v0.2.1
Published
```typescript import AbuseIPDBClient from "abuseipdb-node-client"
Downloads
5
Readme
AbuseIPDB client for Node.js
Usage
Checking IP address
import AbuseIPDBClient from "abuseipdb-node-client"
const abuseCheck = new AbuseIPDBClient({
key: "Your key"
})
abuseCheck.checkIP("1.1.1.1").then(resp => {
console.log(resp)
})
Reporting IP address
Right now you need to specify ID from AbuseIPDB report categories. In future I want it to be more user friendly
import AbuseIPDBClient from "abuseipdb-node-client"
const abuseCheck = new AbuseIPDBClient({
key: "Your key"
})
abuseCheck.reportIP("1.1.1.1", "22,18", "Report comment").then(resp => {
console.log(resp)
})
Clear IP address
import AbuseIPDBClient from "abuseipdb-node-client"
const abuseCheck = new AbuseIPDBClient({
key: "Your key"
})
abuseCheck.clearIP("1.1.1.1").then(resp => {
console.log(resp)
})