Text Purifier is a lightweight npm package to filter inappropriate words from your text. Input your text, specify the words you want to filter, and choose whether you want to censor or remove those words.
npm install text-purifier
View on NPM
import { createBadWordFilter } from 'text-purifier';
Enter the words you want to filter out. For multiple words, separate them with spaces.
Enter the text you want to filter. All inappropriate words will be processed according to your preference.