Socket
Socket
Sign inDemoInstall

glslify-bundle

Package Overview
Dependencies
32
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    glslify-bundle

A wrapper module for bundling glslify scripts using common functionality within the glslify module ecosystem


Version published
Maintainers
1
Install size
782 kB
Created

Readme

Source

glslify-bundle experimental

A wrapper module for bundling glslify scripts using common functionality within the glslify module ecosystem.

Normalizes the API to closely match what's seen when using glslify as a browserify transform, such that when dealing with the simple case it can be used more quickly in other modules.

Usage

NPM

bundle(cwd, options, done)

  • cwd is the working directory of any inline shaders.
  • options is an object literal, and should support any of the parameters you can use when using the browserify transform. Notably, frag and vert are optional.
  • done(err, result) is called when ready.

result.frag

The bundled fragment shader.

result.vert

The bundled vertex shader.

result.files

An array of files that were used within the bundling process.

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Last updated on 29 Jun 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc