{"name":"glslify-bundle","version":"2.0.3","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.2"},"devDependencies":{"glslify-deps":"^1.2.1","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":"968d4238ffa5781c3349621c318c37d922ea89b5","_id":"glslify-bundle@2.0.3","_shasum":"77920f0d760fa5cec2742cf5616e7f3929f36328","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.36","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"77920f0d760fa5cec2742cf5616e7f3929f36328","tarball":"http://registry-npm.ywwl.com/glslify-bundle/download/glslify-bundle-2.0.3.tgz","integrity":"sha512-RmoF3jhOzXtxoopnwmhQ7byAQjBEn9WX4EtXRC+ycqa/C2cCwikv46Uw3fK95gqIT0fZbcHw6t5V5ztNxQuoSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+KqM3ypRLQf88jdRtB+EY4oRT2BxYGrNOsIjDD7jeqAiEAnupfWAbYvQU29Dd3R59huqMCiNff7K1r5BruUdW7lxk="}],"size":3596,"noattachment":false,"key":"/glslify-bundle/-/glslify-bundle-2.0.3.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":1428266524744,"_cnpm_publish_time":1428266524744,"dist-tags":{"latest":"5.1.1"}}