sensy-words-filter
1.0.1 • Public • Published sensy-words
Setup
$ npm install sensy-words-filter --save
Usage
const {sensyWords} = require('sensy-words-filter')
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)
Replaces 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)
Package Sidebar
Install
Weekly Downloads