@devspeed/filterjs
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

Package Sidebar

Install

npm i @devspeed/filterjs

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

23.2 kB

Total Files

13

Last publish

Collaborators

  • silentwolf-dev