glsl-token-string
Converts an array of GLSL tokens to a plain source string
Last updated 10 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install glsl-token-string 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

2 Versions

  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE