contains-vowels
v1.0.3
Published
NPM Package to check if string contains vowels
Downloads
3
Readme
contains-vowels
- Simple NPM Package to check if string contains vowels
- See examples below
Install via NPM
$ npm i contains-vowels
Usage
- Returns a
Boolean
indicating whetherstring
contains vowels.
const containsVowels = require('contains-vowels');
const textWithVowels = 'Test string here!';
if (containsVowels(textWithVowels)) {
console.log('Text contains one or more vowels!');
}