0.2.1 • Published 3 years ago

abuseipdb-node-client v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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)
})
0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago