nm-sensitive-words

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i nm-sensitive-words

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • nguyenmanh1507