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.2 to 1.0.3

2

isProfanity.js

@@ -72,2 +72,2 @@ fs = require('fs');

exports = isProfanity;
module.exports = isProfanity;
{
"name": "isprofanity",
"version": "1.0.2",
"version": "1.0.3",
"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",

@@ -13,3 +13,3 @@ # isProfanity

```javascript
isProfanity(s,function(t){
isprofanity(s,function(t){
// t will equal true if it contains a swear word and false if not

@@ -24,3 +24,3 @@ });

isProfanity(s ,function(t){
isprofanity(s ,function(t){
b = t ? 'contains' : 'does not contain';

@@ -35,3 +35,3 @@ console.log('"'+s+'" '+b+' profanity');

```javascript
isProfanity(s,function(t){
isprofanity(s,function(t){
// t will equal true if it contains a swear word and false if not

@@ -38,0 +38,0 @@ },'data/profanity.csv','data/exceptions.csv');

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