Skip to content

graphcomment/filter-insults

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect insults in a string Build Status

Warning: you need to provide your own insults list, you can get one here:

Usage:

var FilterInsults = require('filter-insults');
var filter = new FilterInsults(['uncool']);

filter.contains('that is uncool'); // true
filter.contains('that is cool'); // false

filter.replace('that is uncool'); // 'that is ******'
filter.replace('that is uncool', 'X'); // 'that is XXXXXX'

About

Detect and remove insults in a sentence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published