Socket
Socket
Sign inDemoInstall

glsl-token-string

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    glsl-token-string

Converts an array of GLSL tokens to a plain source string


Version published
Weekly downloads
244K
decreased by-3.36%
Maintainers
2
Install size
4.41 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 06 Mar 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc