sensitive-words-chan

Filter out a list of sensitive words

Usage no npm install needed!

<script type="module">
  import sensitiveWordsChan from 'https://cdn.skypack.dev/sensitive-words-chan';
</script>

README

Installation and Usage

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

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

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