Comparing version 1.2.0 to 1.2.1
{ | ||
"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"! | ||
} | ||
``` |
6387