{"id":26121469,"url":"https://github.com/poeticandroid/prettify-gdscript","last_synced_at":"2025-03-10T14:22:29.088Z","repository":{"id":281551707,"uuid":"945540591","full_name":"poeticAndroid/prettify-gdscript","owner":"poeticAndroid","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-09T21:19:46.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T21:28:00.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"GDScript","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/poeticAndroid.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-09T17:03:51.000Z","updated_at":"2025-03-09T21:19:49.000Z","dependencies_parsed_at":"2025-03-09T21:39:32.565Z","dependency_job_id":null,"html_url":"https://github.com/poeticAndroid/prettify-gdscript","commit_stats":null,"previous_names":["poeticandroid/prettify-gdscript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poeticAndroid%2Fprettify-gdscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poeticAndroid%2Fprettify-gdscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poeticAndroid%2Fprettify-gdscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poeticAndroid%2Fprettify-gdscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poeticAndroid","download_url":"https://codeload.github.com/poeticAndroid/prettify-gdscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242864829,"owners_count":20197787,"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","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":"2025-03-10T14:22:28.253Z","updated_at":"2025-03-10T14:22:29.079Z","avatar_url":"https://github.com/poeticAndroid.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prettify GDScript\n\n![pretty godot](./images/pretty.png)\n\nA formatter for GDScript that just works!\n\n## Requirements\n\nNone!\n\n## Usage\n\n### Command line\n\n```\n$ npm install -g prettify-gdscript\n$ prettify-gdscript *.gd\n```\n\n### API\n\n  - `prettify(input:string, startInsideString:bool = false) -\u003e string`\n    - `input:string` - The string of GDScript to make pretty.\n    - `startInsideString:bool` - if `true`, assume `input` is starting inside a `\"\"\"multiline string\"\"\"`. Default is `false`.\n  - `isInsideString:bool` - `true` if last operation ended inside a `\"\"\"multiline string\"\"\"`.\n  - `indent:string` - indentation string. Default is `\"\\t\"`.\n  - `eol:string` - line ending. Default is auto-detect.\n\n#### Example\n\n```js\nconst fs = require(\"node:fs\"),\n  pretty = require(\"prettify-gdscript\")\n\nlet input = \"\", output = \"\"\nlet file = \"my_script.gd\"\ninput = \"\" + fs.readFileSync(file)\noutput += pretty.prettify(input) // \u003c- This is the main function\noutput += pretty.eol || \"\\n\"\nfs.writeFileSync(file, output)\n```\n\n## Known Issues\n\nnone yet..\n\n## Release Notes\n\n### 1.10.0\n\n - Treat `!` as a sign (like `-` for negative values)\n\n### 1.9.0\n\n - Opening curly brackets is now its own class (which helps with spacing in enums)\n\n### 1.7.0\n\n - Recongnize operators longer than one character\n - Refactored tokenizer\n\n### 1.3.0\n\n - Added support for `_` in numbers\n - Added support for `@annotations`\n - Added support for nodepaths starting with `\u0026`, `^` or `%`\n\n### 1.2.0\n\n - Recognizing node paths\n\n### 0.3.0\n\n - Giving keywords some room\n\n### 0.2.0\n\n  - Fancy icon!\n\n### 0.1.0\n\nInitial release!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoeticandroid%2Fprettify-gdscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoeticandroid%2Fprettify-gdscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoeticandroid%2Fprettify-gdscript/lists"}