A nodejs wrapper for the StopForumSpam.com REST API
$ npm install --save stopforumspam
var stopforumspam = ;
The simplest way to use this is to create a user like this
var sfsUser = stopforumspam;// REMEMBER! StopForumSpam.com only supports IPv4, not IPv6 addresses
Then you can check the stopforumspam.com database easily.
You can easily submit them if they're spammers too.
stopforumspam;sfsUser;// you can use .then() if you want to wait until after the submit, though I can't imagine why
If you would prefer to call things manually, that's fine too. For example:
You don't need to search with every parameter. You can search only for one or two if you like.
And if you're using ES6 and want synchronous code, then there's a Sync function for everything
var spammer = stopforumspam;if spammer// do stuff// User functions too!var sfsUser = stopforumspam;if sfsUser// do stuff
These are promises, so you can capture errors as well if you like.
MIT © Ted