1.2.0 • Published 3 years ago

lo-yafe v1.2.0

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

Lo Yafe - bad hebrew words filter

Installation

npm install lo-yafe

Usage

const HebrewFilter = require('lo-yafe');

const heFilter = new HebrewFilter(); // Filter with no custom config
console.log(heFilter.censor('מה קורה ימניאק')) // מה קורה ******


const customFilter = new HebrewFilter({ // Filter with custom config
    replacementSymbol: '*', // any 1 char, DEFAULT: *
    freshStart: false, // starts the profane word list with 0 words, DEFAULT: false
    extraWords: [], // add extra words to the profane word list, DEFAULT: []
    whiteList: [], // add white list words that will not be censored, DEFAULT: []
});
1.2.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago