About
This dependency reimplements the native String.prototype.toUpperCase() method. It is supported by all modern browsers and Node.js versions since ES6 (2015).
// 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"