开发者社区> 镜像站> NPM> glslify-detective
glslify-detective
Find all require calls within a glslify file
Last updated 6 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glslify-detective 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)