upper-case
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
tslib | 2.6.2 | 15.59 kB | 0BSD | prod |
The "upper-case" npm package is a handy tool primarily devised to convert an input string to upper case. This JavaScript-based package operates in all environments that support ES3 and the Node.js platform, offering a great utility in string handling tasks. It allows users to manipulate text and obtain the resultant string in upper case text format.
To use the "upper-case" package in JavaScript, start by installing it via npm with the command npm install upper-case --save
. Once installed, you can import it into your project using the code import { upperCase, localeUpperCase } from "upper-case";
.
There are two main functions available: upperCase()
and localeUpperCase()
. The upperCase
function transforms the input string into uppercase. For example:
upperCase("string"); // Outputs: "STRING"
The localeUpperCase
function converts the input string into upper case considering specific locale rules. For example:
localeUpperCase("string", "tr"); // Outputs: "STRİNG"
The locale here is "tr"- Turkish, which has specific rules for i and İ.
The documentation for the "upper-case" package is available on GitHub. You can find a detailed explanation of the package's use and functionalities at git://github.com/blakeembrey/change-case.git
. This README file encompasses all the necessary information, from installation to detailed usage examples, and for further inquiries or contributions, interaction with the repository is welcomed.