JSPM

glsl-version-regex

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q53979F
  • License MIT

a regex for GLSL version statements

Package Exports

  • glsl-version-regex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glsl-version-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

glsl-version-regex

stable

A regex for GLSL version statements.

var version = require('glsl-version-regex')

version.test('#version 300')
//=> true

version.test('#version')
//=> false

version.exec('#version 100')
//=> [ ..., '100', ... ]

version.exec('#version 300 es // comment')
//=> [ ..., '300 es', ... ]

Usage

NPM

regex = require('glsl-version-regex')

Requiring this module will provide you with the regex.

License

MIT, see LICENSE.md for details.