Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 372 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 372 Bytes

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