{"name":"glslify-bundle","version":"2.0.2","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.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":"3227d4b632f7e5768c2c555307b81505a4b970de","_id":"glslify-bundle@2.0.2","_shasum":"2d498b2d70f78b05a2c6ec20ed3291bef96afa29","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.11.13","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"2d498b2d70f78b05a2c6ec20ed3291bef96afa29","tarball":"http://registry-npm.ywwl.com/glslify-bundle/download/glslify-bundle-2.0.2.tgz","integrity":"sha512-hKbyss19r+EfPEvyPLXav700sqtcuc/5URq3p7MCYx+PEJDP2dnbtK0sFTEDIwZv6U3Fh3/8AavPYyVBgJpT4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4D6XLG2e6kx7SemA5V2JHNh5HxidG3Hs4MrEjbAd+OAiEA75hHZT5DSLgW0FwOGYTf5aGneX/qXd9REEh7GuUjyzw="}],"size":3592,"noattachment":false,"key":"/glslify-bundle/-/glslify-bundle-2.0.2.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":1426371999064,"_cnpm_publish_time":1426371999064,"dist-tags":{"latest":"5.1.1"}}