# @types/leo-profanity

> TypeScript definitions for leo-profanity

Latest version **1.5.5** (published 2025-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/leo-profanity
pnpm add @types/leo-profanity
yarn add @types/leo-profanity
bun add @types/leo-profanity
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.5.5 |
| Published | 2025-11-21 |
| First published | 2022-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51386 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/leo-profanity
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leo-profanity
- npm.io page: https://npm.io/package/@types/leo-profanity

## Recent versions

- 1.5.5 (latest) — 2025-11-21
- 1.5.4 (ts4.8) — 2024-06-18
- 1.5.3 (ts4.6) — 2023-11-07
- 1.5.1 (ts4.3) — 2023-08-30
- 1.5.0 (ts4.0) — 2022-05-02
- 1.5.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leo-profanity/index.d.ts)
````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 20:02:07 GMT
 * Dependencies: none

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/leo-profanity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
