A Node.js wrapper for the StopForumSpam.com REST API (v1.3.9). Provides promise-based and sync methods to query the StopForumSpam database for spam reports by IP, email, or username. Supports checking if a user is a spammer and submitting new reports with an API key. Uses the Q promise library. Note: only IPv4 is supported by the upstream service. The package is low-traffic and maintained on an as-needed basis by a single developer.
npm install stopforumspamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a user, checking spam status via promise, submitting a report, manual query, and synchronous API.
Ensure you only pass IPv4 addresses to the User constructor or query functions.
Consider using a fork or replacing the package if security is a concern.
Use .catch() for promise error handling, but note that Q promises also support .fail().
Always pass arguments in correct order: (ip, email, username).
Consider alternatives like 'sfs-api' or implement your own API calls.
Chain promises properly or use async/await to avoid concurrent requests.
Use const stopforumspam = require('stopforumspam'); or import stopforumspam from 'stopforumspam'; then call stopforumspam.User().Do not rely on Q globally; use the promises returned by the library directly.