simplespamcop

1.0.4 • Public • Published

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' }
*/

Readme

Keywords

Package Sidebar

Install

npm i simplespamcop

Weekly Downloads

3

Version

1.0.4

License

ISC

Unpacked Size

2 kB

Total Files

3

Last publish

Collaborators

  • carlospolop