Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-text-sensitive

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

is-text-sensitive - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/index.d.ts

1

lib/index.js

@@ -16,1 +16,2 @@ "use strict";

exports.isTextSensitive = isTextSensitive;
//# sourceMappingURL=index.js.map
{
"name": "is-text-sensitive",
"version": "1.0.0",
"version": "1.1.0",
"description": "Detect if Text is Sensitive (contains explicit words).",
"main": "lib/index.js",
"types": "lib",
"scripts": {

@@ -15,2 +16,18 @@ "build": "tsc -p .",

},
"keywords": [
"js",
"ts",
"text",
"regex",
"filter",
"detect",
"react",
"angular",
"javascript",
"typescript",
"sensitive",
"explicit",
"adult content",
"abusive content"
],
"license": "ISC",

@@ -17,0 +34,0 @@ "devDependencies": {

4

README.md

@@ -1,2 +0,2 @@

# Detects if Text is Sensitive
Detect if Text is Sensitive (contains explicit words)

@@ -15,3 +15,3 @@ # Installation

isTextSensitive('Sorry to include this here; what the fuck!'); // true
isTextSensitive('Some text, that might contain sensitive/explicit content.'); // false
isTextSensitive('Text containing sensitive/explicit content.'); // false
```

@@ -5,3 +5,2 @@ // spacing before | for specific words like (anal)ytics

export let isTextSensitive = function (incomingText: string) {

@@ -8,0 +7,0 @@ if (sensitiveRegex.test(incomingText)) {

@@ -13,5 +13,5 @@ {

// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */

@@ -18,0 +18,0 @@ "outDir": "lib", /* Redirect output structure to the directory. */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc