
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
glslify-hex
Advanced tools
A transform stream for [glslify](http://github.com/chrisdickinson/glslify) that replaces CSS-style hexadecimal colors with `vec3/vec4` definitions.
A transform stream for glslify
that replaces CSS-style hexadecimal colors with vec3/vec4 definitions.
Once you've enabled the stream, you simply put your hex colors in your file like so:
void main() {
gl_FragColor = vec4(#ff0000, 1.0);
}
The above color will be (naïvely) replaced with a GLSL vec3 definition, i.e.:
void main() {
gl_FragColor = vec4(vec3(1.0, 0.0, 0.0), 1.0);
}
You can also use 8-digit hexadecimals for vec4 definitions. The above
example could also be expressed like so:
void main() {
gl_FragColor = #ff0000ff;
}
To use glslify transform streams, you currently need to use glslify-stream
directly:
var createStream = requrire('glslify-stream')
var stream = createStream('./shader.vert', {
transform: ['glslify-hex']
})
stream.pipe(process.stdout)
This might have changed by the time you read this though, so be sure to double check the glslify documentation!
MIT. See LICENSE.md for details.
FAQs
A transform stream for [glslify](http://github.com/chrisdickinson/glslify) that replaces CSS-style hexadecimal colors with `vec3/vec4` definitions.
The npm package glslify-hex receives a total of 95 weekly downloads. As such, glslify-hex popularity was classified as not popular.
We found that glslify-hex 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
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.