Skip to content

nguyenmanh1507/sensitive-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sensitive words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published