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