npm.io
1.0.3 • Published 6 years ago

spamcop

Licence
GPL-3.0
Version
1.0.3
Deps
1
Size
37 kB
Vulns
1
Weekly
0
Stars
2
DeprecatedThis package is deprecated

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