@ffras4vnpm/qui-aliquam-cum

1.0.0 • Public • Published

GitHub Workflow Status (branch) npm

@ffras4vnpm/qui-aliquam-cum

A simple JavaScript / TypeScript library to detect bad words. Use it with your custom list of bad words.

Installation

npm install @ffras4vnpm/qui-aliquam-cum

Usage

// TypeScript Usage
import { addWords, isBad } from '@ffras4vnpm/qui-aliquam-cum';

// JavaScript Usage
const { addWords, isBad} = require('@ffras4vnpm/qui-aliquam-cum');

addWords('some', 'custom', 'word'); // add your list of custom words here

const isBadWord = isBad('This is a sample xxx content', 'Some more custom word content here');

console.log(isBadWord);

// OUTPUT true

const isItBad = isBad('Hey StackBlogger!');

console.log(isItBad);

// OUTPUT false

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @ffras4vnpm/qui-aliquam-cum

Weekly Downloads

48

Version

1.0.0

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • lank831011