Swap Case is a JavaScript extension that converts each letter of a string to its opposite. Lowercase letters are converted to uppercase and vice versa. It is made as similar as possible to the swapcase()
function in Python.
Swap Case offers the following features:
- Converts each letter in a string to its opposite.
- Can be integrated into TypeScript code.
To install Swap Case locally, follow these installation steps:
npm install @barudakrosul/swap-case
To start using Swap Case, import the module first:
1. CommonJS
require("@barudakrosul/swap-case");
2. ESM (ECMAScript Modules)
import "@barudakrosul/swap-case";
3. TypeScript
import "@barudakrosul/swap-case";
Example of usage:
let text = "Hello World!";
console.log(text.toSwapCase());
// Result:
// "hELLO wORLD!"
Contributions to Swap Case are greatly appreciated! Whether reporting bugs, suggesting new features, or contributing to code improvements.
Swap Case is licensed under the CC0-1.0 License - see the LICENSE file for details.
Swap Case appreciates the support and contributions of the following individuals and open source projects:
- @Achixz - Lead developer and creator of the application.
- Open source community - For valuable contributions to the tools and libraries used in this project.
We really appreciate your support to continue developing this project. If you find this project useful, you can support us with a donation:
Every donation, no matter the amount, means a lot to us. Thank you for your support! ❤️
Keep up with the latest changes and updates of Swap Case by referring to Changelog.
Thank you for choosing Swap Case! We aim to provide an easy solution to convert strings into their reverse case.