string-utils-mihai-comanoiu
v1.0.3
Published
A simple Node.js string utility module with common functions
Readme
string-utils
A simple Node.js string utility module providing common string functions.
Functions
capitalize(str)- Capitalizes the first letter of the string.toLowerCase(str)- Converts the string to lowercase.toUpperCase(str)- Converts the string to uppercase.reverse(str)- Reverses the string.isPalindrome(str)- Checks if the string is a palindrome (ignores case and spaces).
Usage
const stringUtils = require("string-utils-mihai-comanoiu");
console.log(stringUtils.capitalize("hello")); // Hello
console.log(stringUtils.isPalindrome("Race car")); // true