![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@2toad/profanity
Advanced tools
A JavaScript profanity filter
Install package
npm i @2toad/profanity
import { profanity } from '@2toad/profanity';
profanity.exists('I like big butts and I cannot lie');
// true
profanity.exists('I like big buttocks and I cannot lie');
// false
profanity.censor('I like big butts (and ar5e) and I cannot lie');
// I like big @#$%&! (and @#$%&!) and I cannot lie
There are several configurable options you can set when you create an instance of the Profanity class:
import { Profanity, ProfanityOptions } from '@2toad/profanity';
const options = new ProfanityOptions();
options.wholeWord = false;
options.grawlix = '*****';
const profanity = new Profanity(options);
By default this is set to true
, so profanity only matches on whole words:
profanity.exists('Two profane words joined: buttsAr5e');
// false
Setting this to false
, results in:
profanity.exists('Two profane words joined: buttsAr5e');
// true
By default this is set to @#$%&!
:
profanity.censor('I like big butts and I cannot lie');
// I like big @#$%&! and I cannot lie
Setting this to ****
, results in:
profanity.censor('I like big butts and I cannot lie');
// I like big **** and I cannot lie
Remove words:
profanity.removeWords(['butt', 'ar5e']);
Add words:
profanity.addWords(['aardvark', 'zebra']);
FAQs
A multi-language profanity filter with full TypeScript support
The npm package @2toad/profanity receives a total of 0 weekly downloads. As such, @2toad/profanity popularity was classified as not popular.
We found that @2toad/profanity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.