# glsl-resolve

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

Latest version **0.0.1** (published 2014-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install glsl-resolve
pnpm add glsl-resolve
yarn add glsl-resolve
bun add glsl-resolve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-03-12 |
| First published | 2014-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | glsl, resolve, shader, modules |

## Links

- npm: https://www.npmjs.com/package/glsl-resolve
- Repository: https://github.com/hughsk/glsl-resolve
- Homepage: http://hughsk.github.io/glsl-resolve
- Issues: https://github.com/hughsk/glsl-resolve/issues
- npm.io page: https://npm.io/package/glsl-resolve

## Dependencies (2)

- [xtend](https://npm.io/package/xtend.md) ^2.1.2
- [resolve](https://npm.io/package/resolve.md) ^0.6.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-03-12

## README

# glsl-resolve [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/glsl-resolve&title=glsl-resolve&description=hughsk/glsl-resolve%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

A wrapper for the [resolve](https://github.com/substack/node-resolve) module
that targets GLSL shaders instead of JavaScript.

## Usage ##

[![glsl-resolve](https://nodei.co/npm/glsl-resolve.png?mini=true)](https://nodei.co/npm/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](http://github.com/hughsk/glsl-resolve/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/glsl-resolve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
