# @devspeed/filterjs

> filter badwords in text

Latest version **2.0.2** (published 2023-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @devspeed/filterjs
pnpm add @devspeed/filterjs
yarn add @devspeed/filterjs
bun add @devspeed/filterjs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-06-08 |
| First published | 2023-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | silentwolf-dev |
| Keywords | text filter, filterjs, @devspeed, badwords, censor |

## Links

- npm: https://www.npmjs.com/package/@devspeed/filterjs
- npm.io page: https://npm.io/package/@devspeed/filterjs

## Recent versions

- 2.0.2 (latest) — 2023-06-08
- 2.0.1 — 2023-06-08
- 2.0.0 — 2023-06-08

## README

# Get started 

based on the older package `devspeed-filterjs`
```js
const {Filter, badwords} = require("@devspeed/filterjs");

const TextFilter = new Filter("hi badword") 

console.log(TextFilter.censor()) // hi *******

console.log(TextFilter.hasBlacklistWord()); // true
```


>  badwords is filled with most of the words from [https://www.noswearing.com](https://www.noswearing.com/)

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