node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

profane-words

profane-words


Aiming to be a comprehensive list of profanity in English.

This includes words from several other lists, with some 'ok words' filtered out.

For other languages, you may wish to check here and here.

Installation: npm i -S profane-words

Usage:

import words from 'profane-words'
const arg = process.argv[2]
 
if (words.includes(arg.toLowerCase())) {
  console.warn('Watch your mouth.')
}

Why: blacklisting words for whatever reason, probably. I'm using it for searches.

License: WTFPL