Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@chayns/colors
Advanced tools
JavaScript utility functions for the calculation of colors for chayns
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
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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.