1.0.1 • Published 8 years ago

siftninja v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

siftninja.js

Sift Ninja is a powerful yet simple software service that automatically moderates and filters content.

This module is a simple module that can be used to call the Sift Ninja API from your node apps, filtering for live chat, social networks, gaming, web comments and more.

Install

From npm:

npm install siftninja

Usage

If you haven't created a siftninja.com account yet, you can create one at https://www.siftninja.com

Once created, you can perform checks by calling the API:

var siftninja = require('siftninja')('<your-siftninja-url>','<your-siftninja-apikey');
siftninja('Phase to test').then(function(result) {
	var result = result.body;
	if( result.response ){
		console.log("we are ok");
	}else{
		console.log("this failed with a score of " + result.tags.vulgar );
	}
});

I wanted to keep this function as simple as possible so that it can be built on and expanded as quickly as needed.


Disclaimer

I have no relationship with Sift Ninja, they make a great product that deserves to be put to use anywhere it can be so I made this module for that purpose. For issues related to this module, please open an issue in the repo, for issues with Sift Ninja's API, please contact them.