{"_id":"glsl-token-properties","_rev":"444702","name":"glsl-token-properties","description":"Takes an array of GLSL tokens and determines whether or not they're a property of another identifier","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"substack","email":"mail@substack.net"}],"time":{"modified":"2024-06-19T00:27:00.000Z","created":"2015-01-02T21:34:01.418Z","1.0.1":"2015-03-06T23:48:11.965Z","1.0.0":"2015-01-02T21:34:01.418Z"},"users":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"repository":{"type":"git","url":"git://github.com/stackgl/glsl-token-properties.git"},"versions":{"1.0.1":{"name":"glsl-token-properties","version":"1.0.1","description":"Takes an array of GLSL tokens and determines whether or not they're a property of another identifier","main":"index.js","license":"MIT","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify test | tap-closer | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"browserify":"^8.0.3","glsl-tokenizer":"^2.0.0","smokestack":"^3.0.0","tap-closer":"^1.0.0","tap-spec":"^2.1.2","tape":"^3.0.3"},"repository":{"type":"git","url":"git://github.com/stackgl/glsl-token-properties.git"},"keywords":["ecosystem:stackgl"],"homepage":"https://github.com/stackgl/glsl-token-properties","bugs":{"url":"https://github.com/stackgl/glsl-token-properties/issues"},"gitHead":"bc9d5af2db20bf4d172e8e3ebba87abb8baaf608","_id":"glsl-token-properties@1.0.1","_shasum":"483dc3d839f0d4b5c6171d1591f249be53c28a9e","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"483dc3d839f0d4b5c6171d1591f249be53c28a9e","tarball":"http://registry-npm.ywwl.com/glsl-token-properties/download/glsl-token-properties-1.0.1.tgz","integrity":"sha512-dSeW1cOIzbuUoYH0y+nxzwK9S9O3wsjttkq5ij9ZGw0OS41BirKJzzH48VLm8qLg+au6b0sINxGC0IrGwtQUcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXNFcv4WcXsTzeLaHerP5ZPW3LrPJ7MIXZbg5cukanqgIgWiNZjuAHkn1deV7kkkGuQKeq73Nq10HEIKhTunFBLMI="}],"size":2040,"noattachment":false,"key":"/glsl-token-properties/-/glsl-token-properties-1.0.1.tgz"},"directories":{},"publish_time":1425685691965,"_cnpm_publish_time":1425685691965},"1.0.0":{"name":"glsl-token-properties","version":"1.0.0","description":"Takes an array of GLSL tokens and determines whether or not they're a property of another identifier","main":"index.js","license":"MIT","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify test | tap-closer | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"browserify":"^8.0.3","glsl-tokenizer":"git://github.com/stackgl/glsl-tokenizer#2.0.0","smokestack":"^3.0.0","tap-closer":"^1.0.0","tap-spec":"^2.1.2","tape":"^3.0.3"},"repository":{"type":"git","url":"git://github.com/stackgl/glsl-token-properties.git"},"keywords":["ecosystem:stackgl"],"homepage":"https://github.com/stackgl/glsl-token-properties","bugs":{"url":"https://github.com/stackgl/glsl-token-properties/issues"},"gitHead":"3f028c934d9631c68e90767d4e261b8a45a662e4","_id":"glsl-token-properties@1.0.0","_shasum":"92cddfd44a93ed1c9e848acfdec57fe64c7f51c2","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.28","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"92cddfd44a93ed1c9e848acfdec57fe64c7f51c2","tarball":"http://registry-npm.ywwl.com/glsl-token-properties/download/glsl-token-properties-1.0.0.tgz","integrity":"sha512-vLl0iCInmz1GRcqvOJZYh8ErmG5QAIM7hDUsC+kvDCXrEZkil3KpHpwwDG8/TypPBAzqqqWMf6h5pyVNe5mVmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXytFmlm0qvE9C0on3y6MYrrpzQlQnJstPngCx35BdlAiAMPUGVf65Sh6U0ziEb2a0iY70kR4wvWGj9RX5kufQQoA=="}],"size":2039,"noattachment":false,"key":"/glsl-token-properties/-/glsl-token-properties-1.0.0.tgz"},"directories":{},"publish_time":1420234441418,"_cnpm_publish_time":1420234441418}},"readme":"# glsl-token-properties\n\n[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)\n\nTakes an array of GLSL tokens and determines whether or not they're a property\nof another identifier.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/glsl-token-properties.png)](https://nodei.co/npm/glsl-token-properties/)\n\n### `properties(tokens)`\n\nTakes an array of GLSL `tokens` from\n[`glsl-tokenizer`](http://github.com/stackgl/glsl-tokenizer) and sets a\n`property` boolean for whether or not the token is a property.\n\n``` javascript\nvar tokenizer  = require('glsl-tokenizer/string')\nvar properties = require('glsl-token-properties')\n\nvar src = 'some.value[2];'\nvar tokens = tokenizer(src)\n\n// determine which tokens are properties\nproperties(tokens)\n\ntokens[0].data     // \"some\"\ntokens[0].property // false\ntokens[2].data     // \"value\"\ntokens[2].property // true\ntokens[4].data     // \"2\"\ntokens[4].property // false\n```\n\n## See Also\n\n* [glsl-tokenizer](http://github.com/stackgl/glsl-tokenizer)\n* [glsl-token-scope](http://github.com/stackgl/glsl-token-scope)\n* [glsl-token-depth](http://github.com/stackgl/glsl-token-depth)\n* [glsl-token-assignments](http://github.com/stackgl/glsl-token-assignments)\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-properties/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/stackgl/glsl-token-properties","bugs":{"url":"https://github.com/stackgl/glsl-token-properties/issues"},"license":"MIT"}