A forked JavaScript filter for profanity detection and cleaning, supporting both Spanish ('es') and English words. Current version 1.0.0 is stable but not actively maintained (last release long ago). It extends the original badwords library with a bilingual word list, language selection, custom placeholder/regex options, and methods to add/remove words. Differentiators include bilingual support out of the box and a simple API, though it lacks TypeScript types and uses CommonJS only.
npm install bad-words-esNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a filter with bilingual languages, clean profanity, add custom words, and change placeholder character.
Consider using alternatives like 'profanity-filter' or 'msl-word-filter' for active support.
Use require() instead of import. If using TypeScript, set esModuleInterop or use a dynamic import.
Declare your own module types or use @ts-ignore.
Always pass { languages: ['es', 'en'] } to ensure both languages are used.Regularly update the blacklist using addWords/removeWords.
Ensure 'npm install bad-words-es' runs and module name is correct.
Use 'const Filter = require('bad-words-es');'Verify Filter is imported correctly and instantiated: 'const filter = new Filter();'
Use require() syntax instead of import/export.
No dependency data recorded yet.