Package Exports
- profanity
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (profanity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
profanity
Randomly replaces text with profanity.
Written by Mr. Papercut (Mischa Rodermond) (website).
Install
Install with npm:
npm install profanityUsage
"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