
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@chayns/colors
Advanced tools
JavaScript utility functions for the calculation of colors for chayns
This package can be installed from npm using npm install @chayns/colors
.
HEX
#
.RGB255
RGB1
HSL (Hue - Saturation - Lightness)
HSV (Hue - Saturation - Value)
This package provides general functions to convert colors from one color model into another as well as chayns-specific functions for generating chayns colors.
All functions allow the usage of colors with a transparency. You just have to add a
to your color (fourth hexadecimal pair for HEX color).
You can import the functions like this: import { isHex } from @chayns/colors;
.
Color model conversion functions:
Functions for normalizing and generating color strings:
Mixing functions:
Lightening/darkening functions:
Type check functions:
Chayns-specific functions
Releasenotes will be send and published via GitHub. To subscribe them, you just have to watch this repository.
npm start
npm test
Increase version with npm version patch
or npm version minor
and push the commit and version tag. The npm package will be published via GitHub Actions.
If you get the error SyntaxError: Unexpected token {
, you have to update your node version to at least Node 10.
FAQs
JavaScript utility functions for the calculation of colors for chayns
The npm package @chayns/colors receives a total of 509 weekly downloads. As such, @chayns/colors popularity was classified as not popular.
We found that @chayns/colors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.