profanity

0.0.2 • Public • Published

profanity

Randomly replaces text with profanity.

Written by Mr. Papercut (Mischa Rodermond) (website).

Install

Install with npm:

npm install profanity

Usage

    "use strict";
 
    var profanity = require('profanity');
 
    var str = "You are a very kind person and your mother looks lovely.";
 
    console.log(profanity.addProfanity(str));

Config

    {
        "enabled": boolean, // turns profanity on/off
        "level": int(1-10) // Profanity level. 1 is almost no profanity, 10 is full sergeant Hartman
    }

Wordlist

The wordlist can be found and edited in ./lib/wordlist.json

Readme

Keywords

none

Package Sidebar

Install

npm i profanity

Weekly Downloads

3

Version

0.0.2

License

none

Last publish

Collaborators

  • mrpapercut