Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 1 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.