1.0.4 • Published 6 years ago

simplespamcop v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Node Simple Spamcop

Use Node to check for malicious IPs in spamcop

Install

npm install simplespamcop

How to use

const simplespamcop = require('simplespamcop');

// Use checkIP(<IP>) to check that IP against projecthoneypot.org
// A promise will be returned
ip = "127.1.1.1";
simplespamcop.checkIP(ip).then(function(result){ 
        console.log(result);
    }, function(err) {
        console.log(err);
});


/*
Outputs examples
{ malicious: true, title: 'Spammer' }
{ malicious: false, title: 'Spammer' }
*/
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago