Fast & small css color parsing, manupulation and conversion
Installations
npm install @kurkle/color
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
18.20.5
NPM Version
10.8.2
Score
99.4
Supply Chain
93.5
Quality
77.8
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
JavaScript (100%)
Developer
kurkle
Download Statistics
Total Downloads
124,019,105
Last Day
416,360
Last Week
1,864,613
Last Month
8,288,964
Last Year
85,051,076
GitHub Statistics
28 Stars
151 Commits
4 Forks
1 Watching
8 Branches
3 Contributors
Package Meta Information
Latest Version
0.3.4
Package Id
@kurkle/color@0.3.4
Unpacked Size
77.11 kB
Size
20.33 kB
File Count
8
NPM Version
10.8.2
Node Version
18.20.5
Publised On
19 Nov 2024
Total Downloads
Cumulative downloads
Total Downloads
124,019,105
Last day
-6%
416,360
Compared to previous day
Last week
-16.8%
1,864,613
Compared to previous week
Last month
8.8%
8,288,964
Compared to previous month
Last year
125%
85,051,076
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
29
@kurkle/color
Overview
Fast and small CSS color parsing and manipulation library.
Parsing
Supported formats:
- named
1blue 2transparent
- hex
1#aaa 2#bbba 3#1A2b3c 4#f1f2f388
- rgb(a)
1rgb(255, 255, 255) 2rgb(255, 0, 0, 0.5) 3rgb(50%, 50%, 50%, 50%) 4rgb(0 0 100% / 80%) 5rgba(200, 20, 233, 0.2) 6rgba(200, 20, 233, 2e-1)
- hsl(a)
1hsl(240deg, 100%, 50.5%) 2hsl(0deg 100% 50%) 3hsla(12, 10%, 50%, .3) 4hsla(-1.2, 10.2%, 50.9%, 0.4)
- hwb
1hwb(240, 100%, 50.5%) 2hwb(244, 100%, 100%, 0.6)
- hsv
1hsv(240, 100%, 50.5%) 2hsv(244, 100%, 100%, 0.6)
Docs
note The docs are for the ESM module. UMD module only exports the default export
Benchmarks
Size visualization
License
@kurkle/color
is available under the MIT license.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/bench.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/bench.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bench.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/bench.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bench.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/bench.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compressed-size.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/compressed-size.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/compressed-size.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/compressed-size.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/npmpublish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/kurkle/color/npmpublish.yml/main?enable=pin
- Info: 0 out of 7 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 3 third-party GitHubAction dependencies pinned
- Info: 3 out of 3 npmCommand dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 4
Details
- Warn: 10 commits out of 21 are checked with a SAST tool
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/bench.yml:1
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/compressed-size.yml:1
- Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
5.4
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More