Clean-up cuss (c*ss, c**s, @#$%) words.
Not affiliated with Football Club København.
This package is ESM only: Node 12+ is needed to use it and it must be imported
instead of required.
npm:
npm install f-ckimport {vowel, inner, grawlix} = require('f-ck')
console.log(vowel('butt')) // => 'b*tt'
console.log(inner('butt')) // => 'b**t'
console.log(grawlix('butt')) // => '@#$%'
console.log(grawlix(7)) // => '@#$%!&?'
console.log(vowel('butt', '-')) // => 'b-tt'This package exports the following identifiers: vowel, inner, and grawlix.
There is no default export.
Sanitize value by replacing vowels in value with character (default:
'*').
Sanitize value by replacing all characters except the first and last in
value with character (default: '*').
Sanitize value using a grawlix pattern (default: '@#$%!&?').
Essentially, repeats pattern for value (when number) or value.length
(when string) characters.
profanities— List of (possible) English profane wordscuss— Map of English profane words to a rating of sureness
MIT © Titus Wormer