@bkwld/light-or-dark
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
5070
6
124
0
20
1