Need private packages and team management tools?Check out npm Teams »

glsl-token-string

1.0.1 • Public • Published

glsl-token-string

experimental

Simple helper package that converts an array of GLSL tokens to a plain GLSL source string.

Usage

NPM

src = stringify(tokens)

var tokenize  = require('glsl-tokenizer/string')
var stringify = require('glsl-token-string')
var assert    = require('assert')
 
var src    = 'vec3 light = vec3(1.0);'
var tokens = tokenize(src)
 
assert(stringify(tokens) === src)

See Also

License

MIT. See LICENSE.md for details.

Install

npm i glsl-token-string

DownloadsWeekly Downloads

70,275

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar