@spences10/sensitive-words
v1.0.0
Published
Filter out a list of sensitive words
Downloads
5
Maintainers
Readme
Example
$ yarn install sensitive-words -D
const { sensitiveWords } = require('@spences10/sensitive-words')
// ES2015 modules
import { sensitiveWords } from '@spences10/sensitive-words'
const filtered = sensitiveWords(
'The new apple macbook pro will have a touchbar',
['pro', 'touchbar']
)
console.log(filtered)
// expected result
// The new apple macbook ***** will have a *****