
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
anti-swear
Advanced tools
Arabic, English
npm install anti-swear
<script src="https://cdn.jsdelivr.net/npm/anti-swear@latest/script.js"></script>
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Split The Bad Words */
console.log(antiSwear.split("hi poops")); // ====> "hi ****s"
console.log(antiSwear.split("hello idiot")); // ====> "hello *****"
/* The Package Can Detect The Bad Words Between Symbols */
console.log(antiSwear.split("hi PO-oPs")); // ====> "hi ****s"
console.log(antiSwear.split("hello id!iot")); // ====> "hello *****"
console.log(antiSwear.split("hi p@$*)#&@(o$@&(*)/\"o@&($)'p-*)$)*@s")); // ====> "hi ****s"
// ^ ^ ^ ^
console.log(antiSwear.split("hello i;d!$!**(=3>i'8*#)@_o!^*@&t")); // ====> "hello *****"
// ^ ^ ^ ^ ^
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Detect The Bad Words And Return Array */
console.log(antiSwear.detect("hi i'm jehaad, and i'm so dumb")); // ====> [ 'dumb' ]
console.log(antiSwear.detect("hello sorry, i'm not an idiot and s?tu/$pi@d")); // ====> [ 'i+dio+t', 's?tu/$pi@d' ]
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Set The Replace Symbol "#" */
antiSwear.replace("#")
/* Replace The Bad Words To The Replace Symbol */
console.log(antiSwear.split("hi poops")); // ====> "hi ####s"
console.log(antiSwear.split("hello idiot")); // ====> "hello #####"
/* Set The Replace Letters "ABC" */
antiSwear.replace("ABC")
/* Replace The Bad Words To The Replace Symbol */
console.log(antiSwear.split("hi poops")); // ====> "hi ABCABCABCABCs"
console.log(antiSwear.split("hello idiot")); // ====> "hello ABCABCABCABCABC"
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Return False Because its Not Content Bad Words */
console.log(antiSwear.isContent("hello friend")); // ====> false
/* Return True Because its Content Bad Words */
console.log(antiSwear.isContent("hi poops")); // ====> true
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Return True Because its Not Content Bad Words */
console.log(antiSwear.isNotContent("hello friend")); // ====> true
/* Return False Because its Content Bad Words */
console.log(antiSwear.isNotContent("hi poops")); // ====> false
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
// Warning: This Method Adding Words/Emojis To The Default Bad words Array..
// It Not Makes a New Array!
/* Return False Because its Not Content Bad Words */
console.log(antiSwear.isContent("hi that's test1")); // ====> false
/* Adding "test1" & "test2" as a Bad Words */
antiSwear.badWords("test1", "test2")
/* Return True Because its Content Bad Words */
console.log(antiSwear.isContent("hi that's test1")); // ====> true
console.log(antiSwear.isContent("what's test2?")); // ====> true
const AntiSwear = require("anti-swear");
const antiSwear = new AntiSwear();
/* Return True Because its Content Bad Words */
console.log(antiSwear.isContent("hi i like poops")); // ====> true
/* Adding "poop" & "idiot" as Not a Bad Words */
antiSwear.ignore("poop", "idiot")
/* Return False Because its Not Content Bad Words */
console.log(antiSwear.isContent("poop")); // ====> false
console.log(antiSwear.isContent("idiot")); // ====> false
FAQs
Split Bad Words Content With Easy Methods!
We found that anti-swear demonstrated a not healthy version release cadence and project activity because the last version was released 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.