{"id":20778106,"url":"https://github.com/stackgl/glsl-deparser","last_synced_at":"2025-08-09T08:12:38.490Z","repository":{"id":45916842,"uuid":"6835203","full_name":"stackgl/glsl-deparser","owner":"stackgl","description":"through stream that translates glsl-parser AST nodes into working glsl code  ","archived":false,"fork":false,"pushed_at":"2021-11-28T15:51:24.000Z","size":197,"stargazers_count":10,"open_issues_count":4,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-02T20:18:54.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-24T01:40:21.000Z","updated_at":"2022-02-26T17:27:35.000Z","dependencies_parsed_at":"2022-09-02T01:40:33.793Z","dependency_job_id":null,"html_url":"https://github.com/stackgl/glsl-deparser","commit_stats":null,"previous_names":["gl-modules/glsl-deparser"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stackgl/glsl-deparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fglsl-deparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fglsl-deparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fglsl-deparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fglsl-deparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackgl","download_url":"https://codeload.github.com/stackgl/glsl-deparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fglsl-deparser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548500,"owners_count":24436113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:19:15.456Z","updated_at":"2025-08-09T08:12:38.444Z","avatar_url":"https://github.com/stackgl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glsl-deparser\n\n```javascript\n\nvar Path = require('path')\n\nvar tokenizer = require('glsl-tokenizer')()\n  , parser = require('glsl-parser')\n  , deparser = require('glsl-deparser')\n\nprocess.stdin\n  .pipe(tokenizer)\n  .pipe(parser())\n  .pipe(deparser())             // \u003c-- deparser!\n  .pipe(process.stdout)\n\nprocess.stdin.resume()\n\n```\n\ntransform a stream of [glsl-parser](https://github.com/chrisdickinson/glsl-parser) AST nodes\ninto strings.\n\nonly operates on top-level statements emitted by `glsl-parser`, so the code it emits is executable\nby webgl.\n\n# api\n\n### deparser(whitespace_enabled=true, tab_text='  ')\n\nCreates a `readable`/`writable` stream.\n\nIf no args are provided, `whitespace` is assumed to be enabled, and the tab text will be `'  '`.\n\nIf you pass `false` for the first arg, only syntactically significant whitespace will be emitted (it'll behave like a poor man's minifier).\n\nIf you pass `true` and tab text, that tab text will be used to indent code.\n\n# note\n\nthe big caveat is that preprocessor if statements (`#if*`, `#endif`) won't work unless\neach branch produces a parseable tree.\n\n# license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fglsl-deparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackgl%2Fglsl-deparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fglsl-deparser/lists"}