NPM Smell 🍑💨

trivial and outdated NPM packages

upper-case outdated npm logo

Converts a string to upper case.

Weekly Downloads
9,193,114
Dependencies
0
Latest Release
a year ago
This dependency re-creates a native JavaScript API. It is recommended to use the native API instead
Outdated
natively supported
since 11 years (chrome, firefox, safari, nodejs)

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"