@types/leo-profanity
TypeScript icon, indicating that this package has built-in type declarations

1.5.4 • Public • Published

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.

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: Tue, 18 Jun 2024 14:36:02 GMT
  • Dependencies: none

Credits

These definitions were written by Jack Humphries.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leo-profanity

Weekly Downloads

2,608

Version

1.5.4

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • types