{"id":20695344,"url":"https://github.com/vorpaljs/bash-codegen","last_synced_at":"2025-08-30T16:36:53.768Z","repository":{"id":66096272,"uuid":"95093062","full_name":"vorpaljs/bash-codegen","owner":"vorpaljs","description":"Bash source code generator","archived":false,"fork":false,"pushed_at":"2017-07-08T07:15:54.000Z","size":3,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-22T20:08:43.411Z","etag":null,"topics":["ast","bash","codegen"],"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/vorpaljs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-06-22T08:32:01.000Z","updated_at":"2019-10-23T11:38:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac369b64-3245-4256-a11d-e2d75eb4e5d4","html_url":"https://github.com/vorpaljs/bash-codegen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vorpaljs/bash-codegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorpaljs%2Fbash-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorpaljs%2Fbash-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorpaljs%2Fbash-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorpaljs%2Fbash-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorpaljs","download_url":"https://codeload.github.com/vorpaljs/bash-codegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorpaljs%2Fbash-codegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878210,"owners_count":25008340,"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-30T02:00:09.474Z","response_time":77,"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":["ast","bash","codegen"],"created_at":"2024-11-17T00:08:55.761Z","updated_at":"2025-08-30T16:36:53.729Z","avatar_url":"https://github.com/vorpaljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bash-codegen\n\n\u003e turn bash AST back into code\n\nThis module will take an AST and add a property to each node named `source`. This attribute when accessed will return the code value of the node.\n\n## Installation\n\n```\nnpm install bash-codegen\n```\n\n## Usage\n\n\u003e `bash-codegen` will directly edit the AST, to get the bash representation of the AST node, access the source property. \n\n```javascript\nconst codegen = require('bash-codegen');\n\nconst parsed = codegen(ast).commands.map((code) =\u003e {\n    return code.source + '\\n';\n}).join('');\n```\n\n## Contributing\n\nWhen making code changes, please add details to the `CHANGELOG.md` file under the section `## Unreleased`, if it doesn't exist, please add it.\n\n\u003e example\n\n```\n## Unreleased\n\n- changed the way something works // each change is a different bullet\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorpaljs%2Fbash-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorpaljs%2Fbash-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorpaljs%2Fbash-codegen/lists"}