string-methods-node package
var stringMethod=require("string-methods-node")
const inputString = "helco World! 123lll ";
Count Vowels
console.log(stringMethod.countVowels(inputString));
Print Vowels
console.log(stringMethod.printVowels(inputString));
Find Repeated Strings
console.log(stringMethod.findRepeatedStrings(inputString));
Count Special Character from Strings
console.log(stringMethod.countSpecialCharacters(inputString));
count number from strings
console.log(stringMethod.countNumbers(inputString));
Total String Length
console.log(stringMethod.totalStringLength(inputString));
reverse String
console.log(stringMethod.reverseString(inputString));
Print Duplicate Character from string
console.log(stringMethod.printDuplicateCharacters(inputString));
<li>Reverse String Using Recursive</li>
console.log(stringMethod.reverseStringRecursive(inputString));
<li>Count Consonants From String</li>
console.log(stringMethod.countConsonants(inputString));
<li>Print Consonants From String</li>
console.log(stringMethod.printConsonants(inputString));
<li>Check it contains only digits or not</li>
console.log(stringMethod.containsOnlyDigits(inputString));
<li>Print First Non Repeated Character</li>
console.log(stringMethod.firstNonRepeatedCharacter(inputString));
Convert String datatype Number Into Number datatype
console.log(stringMethod.stringIntoNumber(inputString));
Reverse Words
console.log(stringMethod.reverseWords(inputString));
Check Is String is Palindrome
console.log(stringMethod.isStringPalindrome(inputString));
Find Length Of Longest Substring
console.log(stringMethod.lengthOfLongestSubstring(inputString));
Find Longest Palindrome Substring
console.log(stringMethod.longestPalindromicSubstring(inputString));
Convert String to Byte Array
console.log(stringMethod.isStringToByteArray(inputString));
Remove Duplicate from String
console.log(stringMethod.removeDuplicates(inputString));
Find Maximum Occurring Character
console.log(stringMethod.findMaxOccurringCharacter(inputString));
Remove Space From String
console.log(stringMethod.removeSpaces(inputString));