1.0.1 • Published 6 years ago
sensy-words-filter v1.0.1
sensy-words
Setup
$ npm install sensy-words-filter --saveUsage
const {sensyWords} = require('sensy-words-filter')
// ES2015 modules
import {sensyWords} from 'sensy-words-filter'Replaces blacklisted words with asterisks
const words =
sensyWords(
'sensy-words, a package for filtering out a list of sensitive words',
['filtering', 'sensitive']
)
console.log(words)
// sensy-words, a package for **** out a list of **** wordsReplaces multiple instances of blacklisted words
const words =
sensyWords(
'sensy-words, a sensitive package for filtering out a list of sensitive words',
['filtering', 'sensitive']
)
console.log(words)
// sensy-words, a **** package for **** out a list of **** words