
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
A lightweight package to detect and filter profanity, especially Indian bad words.
A simple, fast, and extensible JavaScript package to detect and censor abusive words in multiple Indian and international languages. Useful for chat moderation, content filtering, and building safe online communities.
alwaysAllow and alwaysBlock word listsnpm install cleanword
const { cleanText } = require('cleanword');
const options = {
language: ['english', 'hindi'],
grawlixChar: '@',
alwaysAllow: ['kutto'],
alwaysBlock: ['test', 'what'],
};
const cleaned = cleanText('This is a test sentence with kutto and what.', options);
console.log(cleaned); // This is a @@@@ sentence with kutto and @@@@..
import { cleanText } from 'cleanword';
interface CleanTextOptions {
language: string[];
grawlixChar: string;
alwaysAllow: string[];
alwaysBlock: string[];
}
const options: CleanTextOptions = {
language: ['english', 'hindi'],
grawlixChar: '@',
alwaysAllow: ['kutto'],
alwaysBlock: ['test', 'what'],
};
const cleaned: string = cleanText('This is a test sentence with kutto and what.', options);
console.log(cleaned); // This is a @@@@ sentence with kutto and @@@@.
cleanText(text, options)string): The input string to clean.object, optional):
language: string | string[] — Language(s) to check (default: 'hindi').grawlixChar: string — Character to use for censorship (default: '*').alwaysAllow: string[] — Words that should never be censored, even if abusive.alwaysBlock: string[] — Words that should always be censored, even if not abusive.customAbuseSet: Set<string> — Custom set of abusive words (for advanced use/testing).Returns: The cleaned string with abusive words replaced by the grawlix character.
| Option | Type | Description |
|---|---|---|
language | string/string[] | Languages to check (e.g. 'hindi', 'english', 'bengali', 'urdu') |
grawlixChar | string | Character to use for censorship (default: '*') |
alwaysAllow | string[] | Words to never censor |
alwaysBlock | string[] | Words to always censor |
customAbuseSet | Set | Custom abusive word set (advanced/testing) |
You can specify one or more languages using the language option. Example:
cleanText('some text', { language: ['hindi', 'english'] });
npm install
src/abuse_words.js.Test/cleanText.test.js.npm test
Guidelines:
Developed with ❤️ by Nabarup
If you find this package useful, ⭐ star the repo and share it!
MIT © 2025 Nabarup.
Use freely. Contribute with respect.
For feature requests, feedback, or bug reports, open an issue or email me at nabaruproy.dev@gmail.com .
FAQs
A lightweight package to detect and filter profanity, especially Indian bad words.
We found that cleanword demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.