glslify-detective

1.0.0 • Public • Published

glslify-detective

experimental

Find all require calls within a glslify file – much like detective does for browserify.

Usage

NPM

detective(source)

Given a GLSL string source, return an array of the dependencies required within the file. For example, the following source:

#pragma glslify: fog require(glsl-fog/exp2) 
#pragma glslify: smin require(glsl-smooth-min) 

Would yield the following array:

['glsl-fog/exp2', 'glsl-smooth-min']

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

Readme

Keywords

Package Sidebar

Install

npm i glslify-detective

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko
  • wwwtyro
  • thibauts
  • mikkoh
  • yoshuawuyts
  • mattdesl
  • hughsk
  • chrisdickinson
  • tatumcreative
  • rezaali