Filter swearwords out of your strings automagically
npm install no-swearsAutomagically filter out swear words in strings

Very simple package for censoring swear words from JavaScript strings,
replacing offending words with "\\\\".
``bash`
npm install --save no-swears
`javascript
"use strict";
const noswears = require("no-swears");
`
This is the most basic filtering function, and requires the offending
string and a callback, returning the cleaned up string to the program.
`javascript
let badString = "this is a bitching string";
noswears.filterSwearWords(badString, (goodString) => {
console.log(goodString); // "this is a **ing string"
});
`
This just returns true or false to callback depending on whether the passed string
contains a swear word
`javascript
let badString = "this is a bitching string";
noswears.hasSwears(badString, (swearBool) => {
console.log(swearBool); // true
});
`
This just returns true or false synchronously to be used in true/false conditions
`javascript
let badString = "this is a bitching string";
if (noswears.hasSwearsSync(badString)) {
console.log("Has swears!"); // "Has swears"!
}
``