1.0.0 • Published 7 years ago

@spences10/sensitive-words v1.0.0

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

Example

$ yarn install sensitive-words -D
const { sensitiveWords } = require('@spences10/sensitive-words')
// ES2015 modules
import { sensitiveWords } from '@spences10/sensitive-words'


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

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