{"name":"glslify-bundle","version":"2.0.1","description":"Bundle a glslify-deps dependency tree into a GLSL source string","main":"index.js","license":"MIT","scripts":{"test":"node test | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{"glsl-token-defines":"^1.0.0","glsl-token-depth":"^1.1.1","glsl-token-descope":"^1.0.2","glsl-token-scope":"^1.1.1","glsl-token-string":"^1.0.1","glsl-tokenizer":"^2.0.0"},"devDependencies":{"glslify-deps":"^1.0.3","tape":"^3.5.0"},"repository":{"type":"git","url":"git://github.com/stackgl/glslify-bundle.git"},"keywords":["ecosystem:stackgl","glslify","glsl","shader","bundle","module","system","tool","webgl"],"homepage":"https://github.com/stackgl/glslify-bundle","bugs":{"url":"https://github.com/stackgl/glslify-bundle/issues"},"gitHead":"5b92e1c9526e58cb60091f1cd5ba9cb024b126ef","_id":"glslify-bundle@2.0.1","_shasum":"6974883ef5b65adf10e534d34ff28d65c763700d","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"6974883ef5b65adf10e534d34ff28d65c763700d","tarball":"http://registry-npm.ywwl.com/glslify-bundle/download/glslify-bundle-2.0.1.tgz","integrity":"sha512-iqka17CSuW12V3h3eYMI5WIt/S8qD5WSj7IgM/wEJeu7yBqURSUQ82ara3xnyTTBiRjkQfYoNsp4C4sTOpbcxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7SQCxXlE9ugvUQu5ao5d9sFyxOFSQDgWWdHNDAbrdVAIhAIcNIRka3D/g2zTmT/IWYXspjuXq8WoFMG59sKfBhRUL"}],"size":3554,"noattachment":false,"key":"/glslify-bundle/-/glslify-bundle-2.0.1.tgz"},"directories":{},"readme":"# glslify-bundle\r\n\r\n[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)\r\n\r\nBundle a [glslify-deps](http://github.com/stackgl/glslify-deps) dependency tree into\r\na GLSL source string.\r\n\r\nThis has been separated from *glslify-deps* such that you can prebundle a dependency\r\ntree server-side, but then still modify shader file contents in a browser.\r\n\r\n## Usage\r\n\r\n[![NPM](https://nodei.co/npm/glslify-bundle.png)](https://nodei.co/npm/glslify-bundle/)\r\n\r\n### `source = bundle(deps)`\r\n\r\nTakes the output object from [glslify-deps](http://github.com/stackgl/glslify-deps)\r\nand returns a bundled GLSL string.\r\n\r\n``` javascript\r\nvar bundle = require('glslify-bundle')\r\nvar deps   = require('glslify-deps')\r\nvar path   = require('path')\r\n\r\nvar file = path.join(__dirname, 'index.glsl')\r\n\r\ndeps().add(file, function(err, tree) {\r\n  if (err) throw err\r\n\r\n  var glsl = bundle(tree)\r\n\r\n  console.log(glsl)\r\n})\r\n```\r\n\r\n## Contributing\r\n\r\nSee [stackgl/contributing](https://github.com/stackgl/contributing) for details.\r\n\r\n## License\r\n\r\nMIT. See [LICENSE.md](http://github.com/stackgl/glslify-bundle/blob/master/LICENSE.md) for details.\r\n","publish_time":1426040624028,"_cnpm_publish_time":1426040624028,"dist-tags":{"latest":"5.1.1"}}