NPM Smell 🍑💨

trivial and outdated NPM packages

lower-case outdated npm logo

Converts a string to lower case.

Weekly Downloads
20,422,752
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.toLowerCase() method. It is supported by all modern browsers and Node.js versions since about x years.

// Convert a string to lower case
const str = "FOO";
console.log(str.toLowerCase()); // "foo"

Use String.prototype.toLocaleLowerCase() instead if you need to support non-English languages.

const dotted = "İstanbul";

console.log(`EN-US: ${dotted.toLocaleLowerCase("en-US")}`); // "i̇stanbul"
console.log(`TR: ${dotted.toLocaleLowerCase("tr")}`); // "istanbul"