{"id":15557708,"url":"https://github.com/fgasper/gawk-web","last_synced_at":"2025-10-24T22:08:26.224Z","repository":{"id":240119549,"uuid":"801727424","full_name":"FGasper/gawk-web","owner":"FGasper","description":"GNU AWK compiled for web use.","archived":false,"fork":false,"pushed_at":"2024-05-19T19:51:43.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T13:45:13.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/FGasper.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}},"created_at":"2024-05-16T19:51:37.000Z","updated_at":"2024-05-19T19:51:46.000Z","dependencies_parsed_at":"2024-05-16T21:03:57.419Z","dependency_job_id":"ee2b0a50-230f-4516-bd29-1fb8c34d53cc","html_url":"https://github.com/FGasper/gawk-web","commit_stats":null,"previous_names":["fgasper/gawk-web"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fgawk-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fgawk-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fgawk-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fgawk-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGasper","download_url":"https://codeload.github.com/FGasper/gawk-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135739,"owners_count":20729056,"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":"2024-10-02T15:20:26.546Z","updated_at":"2025-10-24T22:08:21.169Z","avatar_url":"https://github.com/FGasper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gawk-web: [GNU AWK](https://www.gnu.org/software/gawk/) for the Web\n\nThis package builds GNU AWK to WebAssembly and JavaScript via [Emscripten](https://emscripten.org/).\n\nUsage:\n```\nconst gawk = require('./gawk.js');\n\n// \"barbaz\\n23\\n\"\ngawk().then( gawk =\u003e {\n    console.log(\n        gawk(\n            [\"foo bar baz\", \"1 2 3\"].join(\"\\n\"),    // the text to process\n            \"{print $2 $3}\",                        // your AWK code\n        ),\n    );\n);\n```\nSpecifically: `require()` returns a single function. When called, that function\ncompiles AWK and returns (via a promise) a function that actually runs AWK.\nYou can call that function over \u0026 over.\n\nThe above tracks closely with typical command-line usage:\n```\n{ echo foo bar baz; echo 1 2 3 } | awk '{print $2 $3}'\n```\n\n## Notes\n\n- Be sure to initialize the submodules (e.g., `git clone --recurse-submodules`)\nwhen cloning this repository.\n\n- This build optimizes for ease of use by packing the WebAssembly into the\nJavaScript file. You can shrink the output significantly by removing\nthe `SINGLE_FILE` flag from the build (see the Makefile). You’ll need to\ngrab `gawk.wasm` from the `gawk` directory and ensure that it’s available\nwherever your `gawk.js` runs.\n\n- This copies a number of usage patterns from\n[jq-web](https://github.com/fiatjaf/jq-web).\n\n- GNU AWK’s build seems to give the LDFLAGS twice when building. For us that\ncauses `pre.js` and friends to be included twice. To work around that, those\nfiles eschew root-level `let` and `const` in favor of `var`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fgawk-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgasper%2Fgawk-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fgawk-web/lists"}