What is lower-case?
The lower-case npm package is designed to convert strings to lower case. It can be used in various JavaScript environments, including Node.js and browsers, to ensure that strings are in lower case for consistency, comparison, or other purposes where case normalization is required.
What are lower-case's main functionalities?
Convert string to lower case
This feature allows you to convert a string to lower case using the toLowerCase method.
"STRING".toLowerCase()
Other packages similar to lower-case
upper-case
This package is the counterpart to lower-case, providing the functionality to convert strings to upper case. It is similar in usage but performs the opposite transformation.
capitalize
The capitalize package is used to convert the first character of a string to upper case. It is similar in that it deals with case transformation, but it specifically targets the first character rather than affecting the entire string.
title-case
This package converts a string into title case, where the first letter of each word is capitalized. It is more complex than lower-case as it needs to identify word boundaries and apply capitalization accordingly.
camelcase
The camelcase package converts strings to camelCase format. It differs from lower-case as it is used for formatting variable and function names in a specific coding style rather than just converting to lower case.
Lower Case
Transforms the string to lower case.
Installation
npm install lower-case --save
Usage
import { lowerCase, localeLowerCase } from "lower-case";
lowerCase("string");
lowerCase("PascalCase");
localeLowerCase("STRING", "tr");
License
MIT