About
This dependency reimplents the native String.prototype.toUpperCase()
method. It is supported by all modern browsers and Node.js versions since about x years.
// Convert a string to upper case
const str = "foo";
console.log(str.toUpperCase()); // "FOO"
Use String.prototype.toLocaleUpperCase()
instead if you need to support non-English languages.
const dotted = "istanbul";
console.log(city.toLocaleUpperCase("en-US")); // "ISTANBUL"
console.log(city.toLocaleUpperCase("TR")); // "İSTANBUL"