Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itszavier/filterjs2.0
https://github.com/itszavier/filterjs2.0
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/itszavier/filterjs2.0
- Owner: Itszavier
- Created: 2023-06-08T17:20:33.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-08T22:42:45.000Z (over 1 year ago)
- Last Synced: 2024-05-05T21:41:59.241Z (6 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
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/)