import AbuseIPDBClient from "abuseipdb-node-client"
const abuseCheck = new AbuseIPDBClient({
key: "Your key"
})
abuseCheck.checkIP("1.1.1.1").then(resp => {
console.log(resp)
})
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)
})
import AbuseIPDBClient from "abuseipdb-node-client"
const abuseCheck = new AbuseIPDBClient({
key: "Your key"
})
abuseCheck.clearIP("1.1.1.1").then(resp => {
console.log(resp)
})