vowelz
Advanced tools
Comparing version 1.1.2 to 1.2.4
@@ -99,4 +99,4 @@ "use strict"; | ||
}, { | ||
key: "setAllVowelsToUppercase", | ||
value: function setAllVowelsToUppercase(arg) { | ||
key: "setAllVowelsToUpperCase", | ||
value: function setAllVowelsToUpperCase(arg) { | ||
var $this = this; | ||
@@ -114,4 +114,4 @@ if (!$this.checkIfPropIsString(arg)) { | ||
}, { | ||
key: "getCount", | ||
value: function getCount(arg) { | ||
key: "getTotalCount", | ||
value: function getTotalCount(arg) { | ||
var $this = this; | ||
@@ -163,3 +163,3 @@ if (!$this.checkIfPropIsString(arg)) { | ||
} | ||
var uniqueVowels = new Set(arg.match(/[aeiou]/gi)); | ||
var uniqueVowels = new Set(arg.toLowerCase().match(/[aeiou]/g)); | ||
return uniqueVowels.size; | ||
@@ -166,0 +166,0 @@ } |
{ | ||
"name": "vowelz", | ||
"version": "1.1.2", | ||
"version": "1.2.4", | ||
"description": "A JavaScript library for efficient manipulation of vowels within strings. Count, transform case, extract positions, and perform various operations on vowels with ease. Enhance your text processing and string transformations using Vowelz.", | ||
"main": "index.js", | ||
"homepage": "https://github.com/sricharankrishnan/vowelz", | ||
"type": "module", | ||
"scripts": { | ||
"build": "babel ./src -d ./dist" | ||
"build": "babel ./src -d ./dist", | ||
"test" : "jest --verbose" | ||
}, | ||
@@ -30,4 +32,5 @@ "author": "Sricharan Krishnan | https://github.com/sricharankrishnan", | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-es2015": "^6.24.1" | ||
"babel-preset-es2015": "^6.24.1", | ||
"jest": "^29.7.0" | ||
} | ||
} |
@@ -78,3 +78,3 @@ class Vowelz { | ||
/* sets all vowels to upper case */ | ||
setAllVowelsToUppercase(arg) { | ||
setAllVowelsToUpperCase(arg) { | ||
var $this = this; | ||
@@ -92,3 +92,3 @@ if (!$this.checkIfPropIsString(arg)) { | ||
/* get how many vowels are there in a string value */ | ||
getCount(arg) { | ||
getTotalCount(arg) { | ||
var $this = this; | ||
@@ -138,3 +138,3 @@ if (!$this.checkIfPropIsString(arg)) { | ||
const uniqueVowels = new Set(arg.match(/[aeiou]/gi)); | ||
const uniqueVowels = new Set(arg.toLowerCase().match(/[aeiou]/g)); | ||
return uniqueVowels.size; | ||
@@ -141,0 +141,0 @@ } |
37745
19
803
Yes
6