{"id":21074785,"url":"https://github.com/dawsbot/build-shell-script","last_synced_at":"2026-05-05T19:33:32.945Z","repository":{"id":57191254,"uuid":"79893255","full_name":"dawsbot/build-shell-script","owner":"dawsbot","description":"Build shell aliases and functions from Node","archived":false,"fork":false,"pushed_at":"2019-06-04T04:09:05.000Z","size":158,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T04:24:17.402Z","etag":null,"topics":["bash","shell","terminal"],"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/dawsbot.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}},"created_at":"2017-01-24T08:36:28.000Z","updated_at":"2023-01-07T06:37:27.000Z","dependencies_parsed_at":"2022-09-15T22:13:09.009Z","dependency_job_id":null,"html_url":"https://github.com/dawsbot/build-shell-script","commit_stats":null,"previous_names":["dawsonbotsford/build-shell-script"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dawsbot/build-shell-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fbuild-shell-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fbuild-shell-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fbuild-shell-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fbuild-shell-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawsbot","download_url":"https://codeload.github.com/dawsbot/build-shell-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fbuild-shell-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32665040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","shell","terminal"],"created_at":"2024-11-19T19:17:56.317Z","updated_at":"2026-05-05T19:33:32.922Z","avatar_url":"https://github.com/dawsbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# build-shell-script\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![XO code style][xo-image]][xo-url]\n\n\u003e Build shell aliases and functions from Node\n\n## Install\n\n```\nnpm install --save build-shell-script\n```\n\n## Usage\n\n```js\nconst buildShellScript = require('build-shell-script');\n\nbuildShellScript.alias('gi', 'git init');\n//=\u003e 'alias gi=\"git init\"\n\nbuildShellScript.fn('gi', 'git init');\n//=\u003e function gi() {\n//     git init\n//   }\n\nbuildShellScript.fn('g', [\n  'git add -A',\n  'git commit',\n  'git push'\n]);\n//=\u003e function g() {\n//     git add -A\n//     git commit\n//     git push\n//   }\n```\n\n## API\n\n### buildShellScript.alias(prefix, suffix)\n\n#### Arguments\n\n| Name    | Description                     |   Type   |  Default       |\n| ------- | ------------------------------- | -------- |  -------       |\n| prefix  | Left side of shell alias        | `string` |None  (required)|\n| suffix  | Right side of shell alias       | `string` |None  (required)|\n\n#### Returns\n\nType: `string`\n\n### buildShellScript.fn(prefix, suffix)\n\n#### Arguments\n\n| Name    | Description                     |   Type   |  Default       |\n| ------- | ------------------------------- | -------- |  -------       |\n| prefix  | Left side of shell function     | `string` |None  (required)|\n| suffix  | Right side of shell function | `string` or `array` |None  (required)|\n\n#### Returns\n\nType: `string`\n\n## License\n\nMIT © [Dawson Botsford](http://dawsonbotsford.com)\n\n[npm-image]: https://badge.fury.io/js/build-shell-script.svg\n[npm-url]: https://npmjs.org/package/build-shell-script\n[travis-image]: https://travis-ci.org/dawsonbotsford/build-shell-script.svg?branch=master\n[travis-url]: https://travis-ci.org/dawsonbotsford/build-shell-script\n[xo-image]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg\n[xo-url]: https://github.com/sindresorhus/xo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Fbuild-shell-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawsbot%2Fbuild-shell-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Fbuild-shell-script/lists"}