
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
Compiles and links GLSL shaders with glsl-unit.
It can be used either as a browserify transform or as a regular node module.
npm install --save-dev glify
var glify = require('glify');
var shader = glify('./fill.*.glsl');
In node, shader will be an object with vertex and fragment properties containing
optimized GLSL source from fill.vertex.glsl and fill.fragment.glsl files.
With browserify, you can run browserify -t glify foo.js > bar.js and bar.js will
contain:
var shader = {"vertex":"precision mediump float;attribute vec2 a_pos;uniform mat4 u_posmatrix;void main(){gl_Position=u_posmatrix*vec4(a_pos,0,1);gl_PointSize=2.;}","fragment":"precision mediump float;uniform vec4 u_color;void main(){gl_FragColor=u_color;}"};
You can prepend #defines to the source:
var lineShader = glify('./line.*.glsl', '#define FOO bar');
FAQs
a webgl compiler browserify transform
The npm package glify receives a total of 82 weekly downloads. As such, glify popularity was classified as not popular.
We found that glify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.