1.0.1 • Published 7 years ago

my-sensitive-words v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Example

$ npm install sensitive-words --save
const { sensitiveWords } = require('my-sensitive-words')
// ES2015 modules
import { sensitiveWords } from 'my-sensitive-words'

const filtered = 
    sensitiveWords(
        'The new apple macbook pro will have touchbar',
        ['pro', 'touchbar']
    )

console.log(filtered)
// 'The new macbook ***** will have *****'