Create heavy metal like rockdot strings in a breeze!
Just include the incredible small rockdotizer.min.js
into your page and enjoy the power of rockdotizing!
// Default usage
rockdotizer('hello world!');
// > "ḧël̈l̈ö ẅör̈l̈d̈!"
// Usage with RegExp
rockdotizer('hello world!', /a|o|u/gi);
// > "hellö wörld!"
If you're using a RegExp it should be matches single characters only and make use of the g
flag.
Ën̈j̈öÿ än̈d̈ ḧäv̈ë p̈ḧün̈!
MIT © Oliver Kühn