words-filter

sensitive word filter implemented with DFA algorithm

Usage no npm install needed!

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

README

words-filter

words-filter for nodejs

Install

npm install words-filter -save

Example


const Filter=require('words-filter').Filter;

const filter=new Filter();

filter.hasKeyword('fuck u',true);//return true

filter.isKeyword('fuck u',true);//return false