New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

isprofanity

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isprofanity - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

isProfanity.js

@@ -9,3 +9,3 @@ fs = require('fs');

function loadCSV(callback,file){
file = typeof(file) == 'string' ? file : 'data/profanity.csv';
file = typeof(file) == 'string' ? file : __dirname+'/data/profanity.csv';
if(typeof(callback) != 'function') throw new Error('isProfanity Error: Valid callback not given...');

@@ -53,3 +53,3 @@ fs.readFile(file, 'utf8', function (err,data) {

function isProfanity(string,callback,customProfanity,customExceptions){
customExceptions = customExceptions ? customExceptions : 'data/exceptions.csv';
customExceptions = customExceptions ? customExceptions : __dirname+'/data/exceptions.csv';
if(typeof(string) != 'string') throw new Error('isProfanity Error: The var \'string\' is not a String...');

@@ -56,0 +56,0 @@ if(typeof(callback) != 'function') throw new Error('isProfanity Error: Valid callback not given...');

{
"name": "isprofanity",
"version": "1.0.3",
"version": "1.0.4",
"description": "A profanity checker which, unlike alternatives, uses the Wagner–Fischer algorithm in order to catch variations that you haven't thought of. ",

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

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