{"id":19854818,"url":"https://github.com/jy8752/shellscript-zx-bun-demo","last_synced_at":"2026-04-11T11:03:22.323Z","repository":{"id":199196892,"uuid":"702087857","full_name":"JY8752/shellscript-zx-bun-demo","owner":"JY8752","description":"シェルスクリプトとbun x zxの比較検証","archived":false,"fork":false,"pushed_at":"2023-10-09T10:13:19.000Z","size":378,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T16:41:37.866Z","etag":null,"topics":["bash","bun","shell","shell-script","ts","typescript","zx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/JY8752.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-10-08T13:12:13.000Z","updated_at":"2023-10-11T15:45:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5860665-70a9-4962-92de-d141dca03a25","html_url":"https://github.com/JY8752/shellscript-zx-bun-demo","commit_stats":null,"previous_names":["jy8752/shellscript-zx-bun-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JY8752/shellscript-zx-bun-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fshellscript-zx-bun-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fshellscript-zx-bun-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fshellscript-zx-bun-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fshellscript-zx-bun-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JY8752","download_url":"https://codeload.github.com/JY8752/shellscript-zx-bun-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fshellscript-zx-bun-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: 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","bun","shell","shell-script","ts","typescript","zx"],"created_at":"2024-11-12T14:10:43.834Z","updated_at":"2026-04-11T11:03:22.307Z","avatar_url":"https://github.com/JY8752.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# シェルスクリプトとzx(Bun)の比較\n\n簡単なスクリプトをシェルスクリプトと[zx](https://github.com/google/zx)で書き比べてみる。せっかくなのでJSのランタイムには[Bun](https://bun.sh/)を使ってみる。\n\n## スクリプトの内容\n\nあらかじめ、配置したデータをもとにガチャのシュミレーションを実行するスクリプト。データには以下の2ファイルを配置しスクリプト内で読み込んでいる。\n\n- ```themes.txt``` 有効なガチャテーマの一覧。\n\n```:themes.txt\ntheme1 これはtheme1のガチャです\ntheme2 これはtheme2のガチャです\ntheme3 これはtheme3のガチャです\n```\n\n- ```gacha/\u003ctheme number\u003e.csv``` 各ガチャテーマに含まれるアイテム情報。\n\n```csv\nid,name,rarity,weight\n1,item1,N,10\n2,item2,N,10\n3,item3,N,10\n4,item4,N,10\n5,item5,N,10\n6,item6,R,5\n7,item7,R,5\n8,item8,R,5\n9,item9,R,5\n10,item10,SR,1\n```\n\n## シェルスクリプトの実行\n\n```\n./main.sh\n```\n\n\u003cimg alt=\"Demo main.sh\" src=\"./examples/demo.gif\" width=\"600\" /\u003e\n\n## zx(Bun)\n\n### setup\n\n#### init\n\n```\n% bun init\n```\n\n#### module\n\n- zx ^7.2.3\n- inquirer ^9.2.11\n- papaparse ^5.4.1\n\n```\nbun add zx inquirer papaparse\n```\n\n### zxスクリプトの実行\n\n```\n./index.ts\n```\n\n\u003cimg alt=\"Demo index.ts\" src=\"./examples/demo2.gif\" width=\"600\" /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjy8752%2Fshellscript-zx-bun-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjy8752%2Fshellscript-zx-bun-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjy8752%2Fshellscript-zx-bun-demo/lists"}