abuseipdb-node-client
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i abuseipdb-node-client

Weekly Downloads

7

Version

0.2.1

License

MIT

Unpacked Size

13.1 kB

Total Files

6

Last publish

Collaborators

  • mrtalon63