A simple library for string manipulation. This package offers utility functions for common string operations like reversing a string, capitalizing words, and counting vowels.
- Reverse a string
- Capitalize the first letter of each word in a string
- Count vowels in a string
Install the package using npm:
npm i @conflow/string-utils
Import the functions in your project:
const { reverseString, capitalizeWords, countVowels } = require('@conflow/string-utils');
// Example usage
console.log(reverseString('hello')); // Output: "olleh"
console.log(capitalizeWords('hello world')); // Output: "Hello World"
console.log(countVowels('hello')); // Output: 2
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.