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

no-swears

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-swears - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "no-swears",
"version": "1.2.0",
"version": "1.2.1",
"description": "Filter swearwords out of your strings automagically",

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

@@ -23,3 +23,3 @@ no-swears

### filter()
### filter(string, callback)

@@ -37,3 +37,3 @@ This is the most basic filtering function, and requires the offending

### hasSwears()
### hasSwears(string, callback)

@@ -51,3 +51,3 @@ This just returns true or false to callback depending on whether the passed string

### hasSwearsSync()
### hasSwearsSync(string)

@@ -59,5 +59,5 @@ This just returns true or false synchronously to be used in true/false conditions

if (noswears.hasSwearsSync) {
console.log("Has swears!") // "Has swears!"
if (noswears.hasSwearsSync(badString)) {
console.log("Has swears!") // "Has swears"!
}
```
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