2.0.2 • Published 2 years ago
@devspeed/filterjs v2.0.2
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