@devspeed/filterjs
v2.0.2
Published
filter badwords in text
Downloads
10
Maintainers
Readme
Get started
based on the older package devspeed-filterjs
const {Filter, badwords} = require("@devspeed/filterjs");
const TextFilter = new Filter("hi badword")
console.log(TextFilter.censor()) // hi *******
console.log(TextFilter.hasBlacklistWord()); // true
badwords is filled with most of the words from https://www.noswearing.com