New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

akismet

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akismet

Akismet library for node.js

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by25.52%
Maintainers
0
Weekly downloads
 
Created
Source

Akismet for node.js. Licensed under the MIT License.

Installation:

npm install akismet

Usage:

You need to sign up for an Akismet API key to use the API. Once you sign up, it would be a good idea to verify your key. See http://www.akismet.com/development/api/#verify-key

var util = require('util'),
    akismet = require('akismet').client({ blog: 'http://my.blog.com', apiKey: 'myakismetapikey123' });

akismet.verifyKey(function(verified, status, headers) {
  if (verified) 
    util.log('API key successfully verified.');
  else 
    util.log('Unable to verify API key.');
});
  

You can now use Akismet to moderate the comments. See http://www.akismet.com/development/api/#comment-check

akismet.checkSpam({ 
    user_ip: userip, 
    permalink: 'http://www.my.blog.com/my-post',
    comment_author: 'spammer',
    comment_content: 'spamming your comments'
  }, function(spam, status, headers) {
    if(spam)
      util.log('Spam caught.');
    else
      util.log('Not spam');
});

You can also send feedback to Akismet with submitSpam and submitHam. Their usage is the same as checkSpam. See http://www.akismet.com/development/api/#submit-spam and http://www.akismet.com/development/api/#submit-ham

FAQs

Package last updated on 26 Dec 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc