{"id":13821928,"url":"https://github.com/loilo/node-bash-minifier","last_synced_at":"2025-09-06T10:33:47.139Z","repository":{"id":75329094,"uuid":"94323575","full_name":"loilo/node-bash-minifier","owner":"loilo","description":"Minify bash scripts","archived":false,"fork":false,"pushed_at":"2018-06-08T23:28:41.000Z","size":15,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-26T03:49:37.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/loilo.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":"2017-06-14T11:26:58.000Z","updated_at":"2020-09-29T16:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"62ea74c4-5830-4175-97fd-948364a1dd4e","html_url":"https://github.com/loilo/node-bash-minifier","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/loilo/node-bash-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fnode-bash-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fnode-bash-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fnode-bash-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fnode-bash-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loilo","download_url":"https://codeload.github.com/loilo/node-bash-minifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fnode-bash-minifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273892816,"owners_count":25186560,"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-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-08-04T08:01:34.471Z","updated_at":"2025-09-06T10:33:47.109Z","avatar_url":"https://github.com/loilo.png","language":"JavaScript","readme":"# Bash minifier\n\nThis Node.js package minifies bash scripts. It's a JavaScript port of the Python bash minifier over at [precious/bash_minifier](https://github.com/precious/bash_minifier).\n\n## Installation\nInstall via npm:\n\n```bash\nnpm install --save bash-minifier\n```\n\n## Usage\nUsing the minifier is dead simple:\n\n```javascript\nconst minify = require('bash-minifier')\n\nminify(`\n  if [ $# -ne 1 ]; then\n    printf \"Filename is required.\\n\"\n    :\n  fi\n`)\n```\n\nThis will return the following minified bash script:\n\n```bash\nif [ $# -ne 1 ];then printf \"Filename is required.\\n\";:;fi\n```\n\n## Contributing\nBefore you report any bugs, please check first if you can reproduce them with [the original minifier](http://bash-minifier.appspot.com/). If they produce the same error, please open an issue there.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fnode-bash-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floilo%2Fnode-bash-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fnode-bash-minifier/lists"}