{"id":15587822,"url":"https://github.com/beaglefoot/prettier-plugin-awk","last_synced_at":"2025-07-30T17:36:32.991Z","repository":{"id":42527211,"uuid":"439915085","full_name":"Beaglefoot/prettier-plugin-awk","owner":"Beaglefoot","description":"AWK plugin for Prettier code formatter","archived":false,"fork":false,"pushed_at":"2024-01-27T19:01:35.000Z","size":233,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T07:05:44.456Z","etag":null,"topics":["awk","formatter","gawk","prettier"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beaglefoot.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}},"created_at":"2021-12-19T16:38:53.000Z","updated_at":"2025-02-28T15:37:25.000Z","dependencies_parsed_at":"2024-01-27T17:35:53.079Z","dependency_job_id":null,"html_url":"https://github.com/Beaglefoot/prettier-plugin-awk","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fprettier-plugin-awk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fprettier-plugin-awk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fprettier-plugin-awk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fprettier-plugin-awk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beaglefoot","download_url":"https://codeload.github.com/Beaglefoot/prettier-plugin-awk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566445,"owners_count":21451230,"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":["awk","formatter","gawk","prettier"],"created_at":"2024-10-02T22:04:20.288Z","updated_at":"2025-04-24T04:50:47.675Z","avatar_url":"https://github.com/Beaglefoot.png","language":"TypeScript","readme":"# Prettier AWK Plugin\n\n[![tests](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml/badge.svg)](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml)\n[![npm](https://img.shields.io/npm/v/prettier-plugin-awk)](https://www.npmjs.com/package/prettier-plugin-awk)\n\nAn opinionated formatter for AWK language built as a plugin for [Prettier](https://github.com/prettier/prettier) with help of [tree-sitter](https://github.com/tree-sitter/tree-sitter) and [tree-sitter-awk](https://github.com/Beaglefoot/tree-sitter-awk).\n\n\n## How to install and use\n\n### Globally\n```\nnpm install --global prettier@^2 prettier-plugin-awk\n```\n\nThen run:\n```\nprettier --write /path/to/your/awesome_script.awk\n```\n\n### Per project\n\nFirst you need to init new node project with:\n```\nnpm init -y\n```\n\nThen add development dependencies:\n```\nnpm add --save-dev prettier@^2 prettier-plugin-awk\n```\n\nThen run with:\n```\nnpx prettier --write ./awesome_script.awk\n```\n\nYou can then create pre-commit hook with something like [husky](https://github.com/typicode/husky) or incorporate such check as CI step.\n\n\n## Ignoring Code\n\nTo ignore node in a syntax tree prepend it with `# prettier-ignore` comment like this:\n```awk\n# prettier-ignore\nBEGIN{x=12}\n```\n\n[More in official docs](https://prettier.io/docs/en/ignore.html)\n\n## Configuring\n\nAlthough most of the options are unsupported or make no sense in regard to AWK you can still configure tab or print width.\n\nTo do so create `.prettierrc` in your project directory with following content:\n```\n{\n  \"printWidth\": 80,\n  \"tabWidth\": 4\n}\n```\n\n[More in official docs](https://prettier.io/docs/en/options.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fprettier-plugin-awk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeaglefoot%2Fprettier-plugin-awk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fprettier-plugin-awk/lists"}