Socket
Book a DemoInstallSign in
Socket

glslify-detective

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glslify-detective

Find all require calls within a glslify file

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

ecosystem:stackgl

FAQs

Package last updated on 13 Mar 2015

Did you know?

Socket

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