{"_id":"glsl-token-assignments","_rev":"26-e573d1264eaf669a6d71e276dd9c86f9","name":"glsl-token-assignments","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"glsl-token-assignments","version":"1.0.0","keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","definitions"],"author":{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"license":"MIT","_id":"glsl-token-assignments@1.0.0","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"dist":{"shasum":"dc6555ffc21bdd3aa9da3fbee01cf3e52b99001c","tarball":"https://registry.npmjs.org/glsl-token-assignments/-/glsl-token-assignments-1.0.0.tgz","integrity":"sha512-uf0g+eMBMtsXJAyMBBr2yXEP/P/3co+fqPAbAo2igxvxOQuKYH1nu3y7HaTbmW6Zr8CWR+rUtFU0rBU8TtRfXw==","signatures":[{"sig":"MEYCIQDDYCxmpNXZ6gUr45aG1L+jz5dDVNEP0v36VKRSW9q3fQIhAKfICtQIF3/VLt3Ay6a04orRGnSD0pvBgigZwk15qI2B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dc6555ffc21bdd3aa9da3fbee01cf3e52b99001c","gitHead":"29e88704d55751275364a65473c0441bafb48cdb","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify -t 6to5ify test | tap-closer | smokestack | tap-spec"},"_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"repository":{"url":"git://github.com/stackgl/glsl-token-assignments.git","type":"git"},"_npmVersion":"2.1.16","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable definitions.","directories":{},"_nodeVersion":"0.10.28","dependencies":{},"devDependencies":{"6to5":"^2.4.8","tape":"^3.0.3","6to5ify":"^3.1.0","tap-spec":"^2.1.2","browserify":"^8.0.3","smokestack":"^3.0.0","tap-closer":"^1.0.0","glsl-tokenizer":"git://github.com/stackgl/glsl-tokenizer#2.0.0"}},"2.0.0":{"name":"glsl-token-assignments","version":"2.0.0","keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","declarations"],"author":{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"license":"MIT","_id":"glsl-token-assignments@2.0.0","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"dist":{"shasum":"3aa1c7ca030fd04323143c11d7a302564388e70a","tarball":"https://registry.npmjs.org/glsl-token-assignments/-/glsl-token-assignments-2.0.0.tgz","integrity":"sha512-X7VxpzzWbuwOzQSgo9Ftg26inro9S47zzTntDxdXxYzA6Y/OLIj468LU/K3DI/oHptOpw01Wxjbc8AbSR3stDQ==","signatures":[{"sig":"MEQCIAIkr/0ll+tVRFAtYalw7Rg0T+jQvsKIrWIcfXTkDcAKAiAMWaAR5d1wrTg2yhMBFTmbeitcIR/Q7Yzy6fcr3xx5jw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3aa1c7ca030fd04323143c11d7a302564388e70a","gitHead":"4286dfe7c7b8a7f02a9bc0add0909afb4b915830","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify -t 6to5ify test | tap-closer | smokestack | tap-spec","test:eyeball":"PRETTY=1 node test > /dev/null","test:browser:view":"browserify -t 6to5ify test | smokestack | tap-spec"},"_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"repository":{"url":"git://github.com/stackgl/glsl-token-assignments.git","type":"git"},"_npmVersion":"2.1.16","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.","directories":{},"_nodeVersion":"0.10.28","dependencies":{},"devDependencies":{"6to5":"^2.4.8","tape":"^3.0.3","chalk":"^0.5.1","6to5ify":"^3.1.0","tap-spec":"^2.1.2","browserify":"^8.0.3","smokestack":"^3.0.0","tap-closer":"^1.0.0","glsl-tokenizer":"git://github.com/stackgl/glsl-tokenizer#2.0.0"}},"2.0.1":{"name":"glsl-token-assignments","version":"2.0.1","keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","declarations"],"author":{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"license":"MIT","_id":"glsl-token-assignments@2.0.1","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"substack","email":"mail@substack.net"}],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"dist":{"shasum":"d721bd2f42b4d33698ef067cd807f1c5ff3127e6","tarball":"https://registry.npmjs.org/glsl-token-assignments/-/glsl-token-assignments-2.0.1.tgz","integrity":"sha512-nnNy6t0F15AJAuRD0y7aFoTOkbw8zmsH0L8Rx+cjAf6zOqkgSNxHdvrG/jFrVn1rtXE7eNYL9uMi4Sw12/5cXA==","signatures":[{"sig":"MEUCICGRni7IkcvjFf/sqL6YH+1KQB7021AimjxeMT8+XM5mAiEAmVngcKJoeToqgG6pddf3RyqpjQw6GHe2HFBhZeStplE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d721bd2f42b4d33698ef067cd807f1c5ff3127e6","gitHead":"849e9dadde8b64745a41a16e7ec5127b8c006f7c","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify -t 6to5ify test | tap-closer | smokestack | tap-spec","test:eyeball":"PRETTY=1 node test > /dev/null","test:browser:view":"browserify -t 6to5ify test | smokestack | tap-spec"},"_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"repository":{"url":"git://github.com/stackgl/glsl-token-assignments.git","type":"git"},"_npmVersion":"2.5.0","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.","directories":{},"_nodeVersion":"0.10.36","dependencies":{},"devDependencies":{"6to5":"^2.4.8","tape":"^3.0.3","chalk":"^0.5.1","6to5ify":"^3.1.0","tap-spec":"^2.1.2","browserify":"^8.0.3","smokestack":"^3.0.0","tap-closer":"^1.0.0","glsl-tokenizer":"^2.0.0"}},"2.0.2":{"name":"glsl-token-assignments","version":"2.0.2","keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","declarations"],"author":{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"license":"MIT","_id":"glsl-token-assignments@2.0.2","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"substack","email":"substack@gmail.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"homepage":"https://github.com/stackgl/glsl-token-assignments","bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"dist":{"shasum":"a5d82ab78499c2e8a6b83cb69495e6e665ce019f","tarball":"https://registry.npmjs.org/glsl-token-assignments/-/glsl-token-assignments-2.0.2.tgz","integrity":"sha512-OwXrxixCyHzzA0U2g4btSNAyB2Dx8XrztY5aVUCjRSh4/D0WoJn8Qdps7Xub3sz6zE73W3szLrmWtQ7QMpeHEQ==","signatures":[{"sig":"MEYCIQD5fRsv9o8q/Oq6OyP9XV6rSYHIUjwSAEmTdNjKr2A2nQIhAO8GCg6Ku9CSS1xo+M27mFVXfX9fqr0jxHVnCQao43W4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a5d82ab78499c2e8a6b83cb69495e6e665ce019f","gitHead":"bd010fe3deeb1fe68faaf7b5faa2f161e4ca0d39","scripts":{"test":"npm run test:node && npm run test:browser","test:node":"node test | tap-spec","test:browser":"browserify -t 6to5ify test | tap-closer | smokestack | tap-spec","test:eyeball":"PRETTY=1 node test > /dev/null","test:browser:view":"browserify -t 6to5ify test | smokestack | tap-spec"},"_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"repository":{"url":"git://github.com/stackgl/glsl-token-assignments.git","type":"git"},"_npmVersion":"2.14.20","description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.","directories":{},"_nodeVersion":"4.4.0","dependencies":{},"devDependencies":{"6to5":"^2.4.8","tape":"^3.0.3","chalk":"^0.5.1","6to5ify":"^3.1.0","tap-spec":"^2.1.2","browserify":"^8.0.3","smokestack":"^3.0.0","tap-closer":"^1.0.0","glsl-tokenizer":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/glsl-token-assignments-2.0.2.tgz_1475034776441_0.5345664641354233","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2015-01-02T20:49:30.960Z","modified":"2024-12-29T00:47:08.291Z","1.0.0":"2015-01-02T20:49:30.960Z","2.0.0":"2015-01-04T20:30:47.796Z","2.0.1":"2015-03-06T23:43:46.884Z","2.0.2":"2016-09-28T03:52:58.309Z"},"bugs":{"url":"https://github.com/stackgl/glsl-token-assignments/issues"},"author":{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"license":"MIT","homepage":"https://github.com/stackgl/glsl-token-assignments","keywords":["ecosystem:stackgl","pseudoparser","syntax","glsl","tokens","assignments","declarations"],"repository":{"url":"git://github.com/stackgl/glsl-token-assignments.git","type":"git"},"description":"Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.","maintainers":[{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"dave.des@gmail.com","name":"mattdesl"},{"email":"chris@neversaw.us","name":"chrisdickinson"},{"email":"javascript@yosh.is","name":"yoshuawuyts"},{"email":"me@mikkoh.com","name":"mikkoh"},{"email":"tatum.creative@gmail.com","name":"tatumcreative"},{"email":"wwwtyro@gmail.com","name":"wwwtyro"},{"email":"thibaut.seguy@gmail.com","name":"thibauts"},{"email":"post.ben.here@gmail.com","name":"bpostlethwaite"},{"email":"df.creative@gmail.com","name":"dfcreative"},{"email":"arnebackeric@gmail.com","name":"erkaman"},{"email":"renaudeau.gaetan@gmail.com","name":"gre"},{"email":"rsreusser@gmail.com","name":"rreusser"},{"email":"marcin.ignac@gmail.com","name":"vorg"},{"email":"arch.mojtaba.samimi@gmail.com","name":"archmoj"}],"readme":"# glsl-token-assignments\n\n[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)\n\nTake an array of GLSL tokens and determine which tokens are either assignments\nor variable declarations.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/glsl-token-assignments.png)](https://nodei.co/npm/glsl-token-assignments/)\n\n### `assignments(tokens)`\n\nTakes an array of GLSL tokens from\n[`glsl-tokenizer`](http://github.com/stackgl/glsl-tokenizer) and sets the\nfollowing boolean values for each `ident` token, i.e. any variable names:\n\n#### `token.assignment`\n\nIf the value of the variable is being changed here.\n\n#### `token.declaration`\n\nIf a new variable is being defined here for this scope.\n\n#### `token.structMember`\n\nIf this token is specifying a new struct member, e.g.:\n\n``` glsl\nstruct X {\n  float member1;\n  float member2;\n};\n```\n\nThe `tokens` array will be modified in-place.\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-assignments/blob/master/LICENSE.md) for details.\n","readmeFilename":"README.md"}