nm-sensitive-words
v1.0.0
Published
Filter out a list of sensitive words
Maintainers
Readme
Example
$ npm install sensitive-words --save// const { sensitiveWords } = require('sensitive-words');
// ES2015 modules
import { sensitiveWords } from 'sensitive-words';
const filtered = sensitiveWords(
'The new Apple macbook pro has touchbar',
['macbook', 'touchbar', 'new']
);
console.log(filtered);
// The xxx Apple xxx pro has xxx