UNPKG

devspeed-filterjs

Version:

filter.js is an javaScript library that makes it easy to filter User inputs.

18 lines 599 B
interface FilterTextOptions { text?: string; textoveride?: boolean; DisableBlackList?: Boolean; censorWith?: string; customBlacklist?: string[]; } export declare class TextFilter { options?: FilterTextOptions | null; text: string | null; constructor(options?: FilterTextOptions); censor(text?: string | null): string | null; private censorText; private _checkTextForBlacklist; hasblacklist(text: string, callback?: (result: boolean, blacklist: string[], text: string) => {}): boolean; } export {}; //# sourceMappingURL=filter.d.ts.map