string-methods-venky
v1.0.4
Published
Count Vowels , Print Vowels , Find Repeated Strings , Count Special Character from Strings etc
Downloads
6
Maintainers
Keywords
Readme
string-methods-node package
var stringMethod=require("string-methods-node")
const inputString = "helco World! 123lll ";
<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));