🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@therohitdas/profanityjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@therohitdas/profanityjs - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+1
-1
package.json
{
"name": "@therohitdas/profanityjs",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple profanity filter and masker.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,3 @@ ��# Profanity JS

```javascript
npm install profanityjs
npm install @therohitdas/profanityjs
```

@@ -24,3 +24,3 @@

```javascript
const { containsProfanity } = require("profanityjs");
const { containsProfanity } = require("@therohitdas/profanityjs");

@@ -34,2 +34,4 @@ var testSentence = "Go fuck yourself!";

}
// Output -
// Naughty word(s) detected
```

@@ -46,3 +48,3 @@

```javascript
const { maskProfanity } = require("profanityjs");
const { maskProfanity } = require("@therohitdas/profanityjs");

@@ -52,6 +54,6 @@ var testSentence = "Go fuck yourself!";

var maskedSentence = maskProfanity(testSentence);
console.log(maskedSentence);
console.log(maskedSentence); // Output - Go **** yourself!
maskedSentence = maskProfanity(testSentence, "#");
console.log(maskedSentence);
console.log(maskedSentence); // Output - Go #### yourself!
```

@@ -58,0 +60,0 @@