![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
chameleon-js
Advanced tools
h1. Chameleon Javascript Color Manipulation Library
A Simple yet powerful color manipulation lib written in javascript based on the color theory http://www.tigercolor.com/color-lab/color-theory/color-theory-intro.htm
h3. Dependencies
Neon Javascript Class DSL http://github.com/azendal/neon
h3. Browser support
All Major Browsers
h3. Examples
// Make an instance of Chameleon
var color = new Chameleon('#00FF00');
color.getHue(); // returns 120
color.setSaturation(20); // modifies the saturation value
color.rotateBy(15); // shift the hue value the given degrees
// Test if a Color is Legible over some other Background Color
var text = new Chameleon('#00FF00');
var background = new Chameleon('#FF0000');
text.isLegible(background); // returns true
text.getLegibles(background) // returns an array of "STRING" Objects with modified saturation and values that are readable on the given background color
h3. Help and Contact
You are very welcome to contribute. Just fork the git repository and create a new issue, send a pull request or contact me personally.
h3. Contributors
Sergio de la Garza (Lead Developer) -sergio.delagarza [at] gmail -@sgarza (Twitter)
Fernando Trasviña (Core Member Lead) -trasvina [at] gmail -@azendal (Twitter)
FAQs
Javascript Library to handle Color calculations
The npm package chameleon-js receives a total of 3 weekly downloads. As such, chameleon-js popularity was classified as not popular.
We found that chameleon-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.