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

@bkwld/light-or-dark

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bkwld/light-or-dark - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

index.cjs

2

index.js

@@ -7,3 +7,3 @@ /**

*/
export default function lightOrDark(color) {
export function lightOrDark(color) {

@@ -10,0 +10,0 @@ // Variables for red, green, blue values

{
"name": "@bkwld/light-or-dark",
"version": "1.0.0",
"version": "1.0.1",
"description": "Return whether a hex or rgb color is light or dark",
"main": "index.js",
"main": "index.cjs",
"module": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rollup -c",
"version": "npm run build && git add -A",
"postversion": "git push --follow-tags"
},

@@ -18,3 +21,6 @@ "repository": {

},
"homepage": "https://github.com/BKWLD/light-or-dark#readme"
"homepage": "https://github.com/BKWLD/light-or-dark#readme",
"devDependencies": {
"rollup": "^2.41.2"
}
}

@@ -7,6 +7,10 @@ # light-or-dark

## Install
`npm install @bkwld/light-or-dark`
## Usage
```js
import lightOrDark, { isLight, isDark } from '@bkwld/light-or-dark'
import { lightOrDark, isLight, isDark } from '@bkwld/light-or-dark'

@@ -13,0 +17,0 @@ lightOrDark('#000000') // "dark"

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