JSPM

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

Package Exports

    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

    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-bad-words-filter

    Npm

    npm install tunisian-bad-words-filter

    Pnpm

    pnpm add tunisian-bad-words-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-bad-words-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!