disemvowel
v1.0.0
Published
A jQuery plugin to remove vowels from text
Downloads
2
Maintainers
Readme
Disemvowel
Disemvowel.js is a jQuery plugin to remove vowels from text, specifically a, e, i, o, u, and their capital letter variants. But not y. Why would you want to do this? I don't know, maybe to impress your friends. Or to really confuse people.
See a demo here: See a demonstration here
Download
- Regular version: disemvowel.js
- Minified version: disemvowel.min.js
Although let's be honest, the minified version isn't going to save you much
Usage
Disemvowel runs as a jQuery plugin, so you'll need to include jQuery into your website somewhere. Once you've done this, you'll need to include the disemvowel.js file. Put the following right before the closing body tag in your HTML.
<script src="https://code.jquery.com/jquery-1.12.2.js"></script>
<script src="path/to/disemvowel.js"></script>
To call upon the plugin, select your element using jQuery and use .disemvowel( )
jQuery(function(){
jQuery('p').disemvowel();
});
By default, disemvowel will remove all vowels, both upper and lower case. You can set disemvowel to replace them instead of just removing them.
jQuery(function(){
jQuery('p').disemvowel({
replacement: '*'
});
});