{"id":18153449,"url":"https://github.com/thinknathan/tstl-remove-debug","last_synced_at":"2025-08-02T09:05:13.137Z","repository":{"id":213975867,"uuid":"735393893","full_name":"thinknathan/tstl-remove-debug","owner":"thinknathan","description":"TypeScriptToLua plugin that removes debugging expressions","archived":false,"fork":false,"pushed_at":"2025-07-01T07:31:32.000Z","size":354,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T18:11:54.653Z","etag":null,"topics":["code-cleaner","lua","tstl","tstl-extension","tstl-plugin","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinknathan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-24T18:57:18.000Z","updated_at":"2025-03-01T03:08:38.000Z","dependencies_parsed_at":"2023-12-29T05:28:06.225Z","dependency_job_id":"813eca31-fb7d-4f15-ab54-f11be03e254a","html_url":"https://github.com/thinknathan/tstl-remove-debug","commit_stats":null,"previous_names":["thinknathan/tstl-remove-debug"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thinknathan/tstl-remove-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftstl-remove-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftstl-remove-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftstl-remove-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftstl-remove-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinknathan","download_url":"https://codeload.github.com/thinknathan/tstl-remove-debug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftstl-remove-debug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268359284,"owners_count":24238012,"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-02T02:00:12.353Z","response_time":74,"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":["code-cleaner","lua","tstl","tstl-extension","tstl-plugin","typescript"],"created_at":"2024-11-02T03:07:05.257Z","updated_at":"2025-08-02T09:05:13.088Z","avatar_url":"https://github.com/thinknathan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tstl-remove-debug\n\n[![CI](https://github.com/thinknathan/tstl-remove-debug/actions/workflows/ci.yml/badge.svg)](https://github.com/thinknathan/tstl-remove-debug/actions/workflows/ci.yml) ![GitHub License](https://img.shields.io/github/license/thinknathan/tstl-remove-debug)\n\nTypeScriptToLua plugin that strips calls to `print`, `pprint`, `assert`, and any functions attached to `profiler` and `debug`. Also replaces the statement `sys.get_engine_info().is_debug` with `false`.\n\nThe purpose is to reduce code size for production builds.\n\n:exclamation: Use this and any code transformation plugin with caution. Mistakes are possible.\n\n## Example\n\n```ts\nprint(foo);\npprint(foo);\nassert(foo === '');\nprofiler.start();\ndebug.draw_text('');\nconst is_debug = sys.get_engine_info().is_debug;\n```\n\nBecomes:\n\n```lua\n-- (This space intentionally left blank)\nlocal is_debug = false\n```\n\n## Installation\n\nRequires TSTL \u003e= 1.22.0.\n\n1. Install this plugin\n\n```bash\nyarn add tstl-remove-debug -D\n# or\nnpm install tstl-remove-debug --save-dev\n```\n\n2. Add `tstl-remove-debug` to `tstl.luaPlugins` in `tsconfig.json`\n\n```diff\n{\n\t\"tstl\": {\n\t\t\"luaPlugins\": [\n+\t\t\t{ \"name\": \"tstl-remove-debug\" }\n\t\t],\n\t}\n}\n```\n\n## License\n\nCC0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Ftstl-remove-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinknathan%2Ftstl-remove-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Ftstl-remove-debug/lists"}