Socket
Socket
Sign inDemoInstall

glsl-resolve

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    glsl-resolve

A wrapper for the "resolve" module that targets GLSL shaders instead of JavaScript


Version published
Weekly downloads
254K
decreased by-1.59%
Maintainers
1
Install size
46.5 kB
Created
Weekly downloads
 

Readme

Source

glsl-resolve Flattr this!experimental

A wrapper for the resolve module that targets GLSL shaders instead of JavaScript.

Usage

glsl-resolve

The API is equivalent to resolve for both resolve.async and resolve.sync, with the following exceptions:

  • Node's core modules are excluded.

  • The "main" file for a module is looked for first in a package.json's glslify property, then if main isn't a JavaScript file it'll look there too. Otherwise, it will default to trying index.glsl.

  • Listed in order of priority, the following extensions are resolved instead of .js and .json:

    • .glsl
    • .vert
    • .frag
    • .geom
    • .vs
    • .fs
    • .gs
    • .vsh
    • .fsh
    • .gsh
    • .vshader
    • .fshader
    • .gshader

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Last updated on 12 Mar 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