is-text-sensitive
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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": { |
@@ -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. */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8913
8
91