New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

convert-to-lower-case

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-to-lower-case - npm Package Compare versions

Comparing version

to
2.0.1

7

index.js
module.exports = function (string) {
if (!typeof string === "string") return new Error('Object is not a string.')
return string.toLowerCase();
try {
return string.toLowerCase();
} catch {
return new Error("Object is not a string.")
}
};
{
"name": "convert-to-lower-case",
"version": "2.0.0",
"version": "2.0.1",
"description": "A package you will never need",

@@ -5,0 +5,0 @@ "main": "index.js",