npm.io
1.5.5 • Published 10 months ago

@types/leo-profanity

Licence
MIT
Version
1.5.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/leo-profanity

Summary

This package contains type definitions for leo-profanity (https://github.com/jojoee/leo-profanity).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leo-profanity.

index.d.ts

export function loadDictionary(lang: "en" | "fr" | "ru"): void;
export function list(): string[];
export function check(text: string): boolean;
export function clean(text: string, replaceKey?: string): string;
export function add(word: string | string[]): void;
export function remove(word: string | string[]): void;
export function reset(): void;
export function clearList(): void;

Additional Details

  • Last updated: Fri, 21 Nov 2025 2007 GMT
  • Dependencies: none

Credits

These definitions were written by .