@spences10/sensitive-words

1.0.0 • Public • Published

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 *****

Package Sidebar

Install

npm i @spences10/sensitive-words

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • spences10