New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

profane-words

Package Overview
Dependencies
Maintainers
0
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

profane-words

profane words

1.6.0
latest
Source
npm
Version published
Weekly downloads
1.5K
-4.39%
Maintainers
0
Weekly downloads
 
Created
Source

profane-words

A semi-comprehensive list of profanity in English.

Donate

Warning don't read the list if you're easily offended. I don't even know what at least half of these words mean.

This includes words from several other lists, with some 'ok words' filtered out. Note because this project started out as a compilation of other lists, there may still be false positives that I missed here! If you come across something that doesn't make sense, please open an issue or a PR!

For other languages, you may wish to check 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.')
}

All words are lowercased.

Why: disallowing words for whatever reason, probably.

License: WTFPL

Keywords

profane-words

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts