JeffResc / SpamCop

SpamCop IP Address Lookup in Node.js
https://www.npmjs.com/package/spamcop
GNU General Public License v3.0
2 stars 1 forks source link

NPM

SpamCop

SpamCop IP Address Lookup in Node.js

Also check out my DroneBL and BarracudaCentral packages.

Example Lookup:

First run npm install spamcop to install the SpamCop package to your system.

var SpamCop = require('spamcop');

SpamCop.lookup('8.8.8.8', function(res) {
    console.log(res); //Returns false since 8.8.8.8 is not listed
});

SpamCop.lookup('212.227.94.244', function(res) {
    console.log(res); //Returns true since 212.227.94.244 is listed
});

This Package Is Licensed Under The GPL-3.0 License