1.0.0 • Published 7 years ago
nm-sensitive-words v1.0.0
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
1.0.0
7 years ago