1.1.0 • Published 3 years ago

mixj93-sensitive-words v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

Example

$ npm install sensitive-words
const { sensitiveWords } = require('sensitive-words')

// ES2015 modules
import  { sensitiveWords } = from 'sensitive-words'

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

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