convert-to-title-case

1.0.6 • Public • Published

Convert To Title Case

An NPM Module that simplifies the task of converting strings to Title Case.

contributors last update forks stars open issues license


🌟 About the Project

The convert-to-title-case module is a versatile and user-friendly tool that ensures a consistent and aesthetically pleasing Title Case presentation for diverse input text styles.

🖊️ Supported Cases and Examples

  • Lowercase:

    • input: this is a sample text
    • output: This Is A Sample Text
  • Uppercase:

    • input: ALL CAPS HERE
    • output: All Caps Here
  • Mixed Case:

    • input: miXeD CaSe ExAmPlE
    • output: Mixed Case Example

🧰 Getting Started

‼️ Prerequisites

This project uses Node.js and npm. Go check them out if you don't have them locally installed.

  node --version
  npm --version

⚙️ Installation

Use the package manager npm to install convert-to-title-case.

  npm i convert-to-title-case

🏃 Import Module

Using JavaScript's require function.

  const toTitleCase = require('convert-to-title-case');

👀 Usage

Here's an simple example of how to use the module.

const toTitleCase = require("convert-to-title-case");
// Import the function

const inputString = "hello world"; // Input string
const titleCasedString = toTitleCase(inputString); // Call the function and pass the input string

console.log(`Original: ${inputString}`); // Output: hello world
console.log(`Title Case: ${titleCasedString}`); // Output: Hello World

👋 Contributing

Contributions are always welcome!

⚠️ License

Distributed under the MIT License. See LICENSE for more information.

🤝 Contact

💎 Acknowledgements

Use this section to mention useful resources and libraries that you have used in your projects.

Readme

Keywords

none

Package Sidebar

Install

npm i convert-to-title-case

Weekly Downloads

5

Version

1.0.6

License

MIT

Unpacked Size

7.49 kB

Total Files

6

Last publish

Collaborators

  • shadmanhere