1.0.1 • Published 7 years ago
my-sensitive-words v1.0.1
Example
$ npm install sensitive-words --save
const { sensitiveWords } = require('my-sensitive-words')
// ES2015 modules
import { sensitiveWords } from 'my-sensitive-words'
const filtered =
sensitiveWords(
'The new apple macbook pro will have touchbar',
['pro', 'touchbar']
)
console.log(filtered)
// 'The new macbook ***** will have *****'