You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package exports the identifiers vowel, inner, and grawlix.
There is no default export.
vowel(value[, character])
Sanitize value (string) by replacing vowels in value with character
(string, default: '*').
inner(value[, character])
Sanitize value (string) by replacing all characters except the first and
last in value with character (string, default: '*').
grawlix(value[, pattern])
Sanitize value (string or number) using a grawlix pattern (string,
default: '@#$%!&?').
Essentially, repeats pattern for value (when number) or value.length
(when string) characters.
Types
This package is fully typed with TypeScript.
It exports no additional types.
Compatibility
This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 14.14+ and 16.0+.
It also works in Deno and modern browsers.
Security
This package is safe.
Related
profanities
— list of (possible) English profane words
cuss
— map of English profane words to a rating of sureness