Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0.1 to 1.0.2

2

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

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

@@ -14,3 +14,3 @@ no-swears

const noswear = require('no-swear')
const noswears = require('no-swears')
```

@@ -26,3 +26,3 @@

noswear.filter(badString, goodString => {
noswears.filter(badString, goodString => {
console.log(goodString)

@@ -29,0 +29,0 @@ })

'use strict'
const noswear = require('./index')
const noswears = require('./index')
let badString = "hell brainfuck is weird"
noswear.filter(badString, goodString => {
noswears.filter(badString, goodString => {
console.log("Want string \"**** brain**** is weird\", got", goodString)

@@ -9,0 +9,0 @@ if (goodString == "**** brain**** is weird") {

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