A JavaScript profanity filter for Brazilian Portuguese, forked from the popular bad-words library. Version 3.0.11 is the latest stable release. It provides a simple API to clean strings by replacing blacklisted words with a placeholder (default '*'). Key differentiators include support for custom placeholders, regex overrides, adding/removing words from the blacklist, and instantiation with an empty list. The package is designed for Node.js (>=8.0.0) and requires an ES2016+ environment or transpiler. It is released under MIT license and follows semantic versioning.
npm install bad-words-brNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import Filter, instantiate, clean a string, use custom placeholder, check profanity, add/remove words.
Update Node.js to >=8.0.0 or use a transpiler like Babel.
Use 'replaceRegex' option instead of 'regex'.
If you need a different placeholder, set 'placeHolder' option explicitly.
Use filter.addWords(...array) instead of filter.addWords(array).
Install @types/bad-words-br or declare module manually.
Use 'import Filter from 'bad-words-br'' or 'const Filter = require('bad-words-br').Run 'npm install bad-words-br --save'.
Use CommonJS require or upgrade Node.js to version that supports ES modules.
No dependency data recorded yet.