Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
chromath provides provides many color conversion and manipulation functions.
You can:
In the browser:
<script src="/path/to/chromath.js"></script>
In NodeJS:
npm install chromath
then
var Chromath = require('chromath')
From there, the usage is identical in both environments.
You can use chromath in a functional or object-oriented manner.
var red = new Chromath('rgb(255, 0, 0)');
red.towards('yellow', 0.5).toString(); // #FF7F00
is the same as
Chromath.towards('red', 'yellow', 0.5).toString(); // #FF7F00
The only difference between instance methods and Class methods with
the same name (e.g, Chromath.tint
and tint
) is that the instance
methods pass the instance value as the first argument.
Here's the definition of Chromath.prototype.tint
:
tint: function (by) {
return Chromath.tint(this, by);
}
In NodeJS you can only pull in the portions you're interesed in, e.g:
> var fromRGBToHex = require('chromath').rgb2hex
> fromRGBToHex(234, 56, 78)
'#EA384E'
http://JFSIII.org/project/chromath/docs/
FAQs
JavaScript color conversion and manipulation functions
The npm package chromath receives a total of 145 weekly downloads. As such, chromath popularity was classified as not popular.
We found that chromath 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.