Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including no-bads with all npm packages installed. Try it out:

var noBads = require("no-bads")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

no-bads v1.0.1

For finding profanity in sentence or word. This library will help you to find the bad words


npm version


Javascript library for finding bad words (profanity). This library will help you to check bad words in user input fields like feedback form, username entry, messages, etc.

This library is still under development. For avoiding issues like, the word 'Hello' is a bad word because it contains "Hell". For avoiding this issues, I've created a exceptions list.

Supported Languages: English If anyone has details of any language, add the json array file containing the bad words in lib/bads folder.

The filename should be like this "bads_language code>.json"


var NoBads = require('no-bads'),
   filter = new NoBads({languages:['en']});

var word = "Where is that hell"


  languages:["en","mal"],//en- English (default), mal- Malayalam
  disableDefaultException:true,//false by-default (true -> disable all default exception words)
  include:["custom"],//includes custom words that needs to be avoided
  exclude:["hell"],//excludes the word hell, now hell is not a bad word


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free