@conflow/string-utils

1.1.1 • Public • Published

String Utils

A simple library for string manipulation. This package offers utility functions for common string operations like reversing a string, capitalizing words, and counting vowels.

Features

  • Reverse a string
  • Capitalize the first letter of each word in a string
  • Count vowels in a string

Installation

Install the package using npm:

npm i @conflow/string-utils

Usage

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

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Links

Package Sidebar

Install

npm i @conflow/string-utils

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

4.12 kB

Total Files

4

Last publish

Collaborators

  • conflow