Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-darkmode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-darkmode - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

index.d.ts

10

index.js

@@ -1,5 +0,9 @@

function isDarkMode() {
return "Nothing to see here";
function isDarkmode() {
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
return true;
} else {
return false;
}
}
module.exports = isDarkMode;
module.exports.isDarkmode = isDarkmode;
{
"name": "is-darkmode",
"version": "0.0.1",
"description": "Reserved for future use",
"version": "0.0.2",
"description": "A simple utility to find whether darkmode is enabled",
"main": "index.js",
"scripts": {
"test": "node test.js"
"publishConfig": {
"access": "public"
},

@@ -14,7 +14,16 @@ "repository": {

"author": "mcnaveen <me@mcnaveen.com>",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/mcnaveen/is-darkmode/issues"
},
"homepage": "https://github.com/mcnaveen/is-darkmode#readme"
"homepage": "https://github.com/mcnaveen/is-darkmode#readme",
"keywords": [
"darkmode",
"is-darkmode",
"color-scheme",
"prefers-color-scheme",
"display-theme",
"lightmode",
"is-lightmode"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc