JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q63555F
  • License MIT

Package Exports

  • tunisian-badwords-filter
  • tunisian-badwords-filter/dist/index.js
  • tunisian-badwords-filter/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tunisian-badwords-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tunisian Bad Words Filter

This TypeScript library, Tunisian Bad Words Filter, is designed to help maintain a more respectful and inclusive environment in applications by filtering out Tunisian bad words from text.

Installation

To integrate the library, install it using your preferred package manager:

Yarn

yarn add tunisian-badwords-filter

Npm

npm install tunisian-badwords-filter

Pnpm

pnpm add tunisian-badwords-filter

Usage

Use the filterBadWords function to replace potential bad words in input text with ****. Below is an example usage:

// Import the filterBadWords function from the library
import { filterBadWords } from 'tunisian-badwords-filter';

// Example text containing a Tunisian bad word
const inputText = 'This is a bad word: zebi';

// Use the filterBadWords function to filter out bad words
const filteredText = filterBadWords(inputText);

// Display the original and filtered text
console.log('Original Text:', inputText);
console.log('Filtered Text:', filteredText);

The provided API documentation and this example usage demonstrate the straightforward implementation of the library. Contributions are welcome, and the project is licensed under the MIT License. Feel free to explore and enhance this library!