1.0.6 • Published 12 months ago

adults v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

GitHub Workflow Status (branch) npm

adults

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

Installation

npm install adults

Usage

// TypeScript Usage
import { addWords, isBad } from 'adults';

// JavaScript Usage
const { addWords, isBad} = require('adults');

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

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago