{"id":15225222,"url":"https://github.com/esy/esy-bash","last_synced_at":"2025-04-09T19:11:14.128Z","repository":{"id":42236090,"uuid":"138354667","full_name":"esy/esy-bash","owner":"esy","description":"Installation utilities for Cygwin - primed for Reason/OCaml","archived":false,"fork":false,"pushed_at":"2024-06-10T03:38:00.000Z","size":653,"stargazers_count":11,"open_issues_count":17,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-06T14:08:55.467Z","etag":null,"topics":["bash","cross-platform","cygwin","cygwin-installation","esy","ocaml","reasonml"],"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/esy.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":"2018-06-22T22:51:06.000Z","updated_at":"2024-11-05T00:45:41.000Z","dependencies_parsed_at":"2024-06-20T00:14:57.256Z","dependency_job_id":"49ae5870-d706-44a3-b6b9-83c2806d28a0","html_url":"https://github.com/esy/esy-bash","commit_stats":null,"previous_names":["bryphe/esy-cygwin","bryphe/esy-bash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esy%2Fesy-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esy%2Fesy-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esy%2Fesy-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esy%2Fesy-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esy","download_url":"https://codeload.github.com/esy/esy-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418186,"owners_count":19468860,"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":["bash","cross-platform","cygwin","cygwin-installation","esy","ocaml","reasonml"],"created_at":"2024-09-28T18:05:12.297Z","updated_at":"2025-02-15T15:31:33.108Z","avatar_url":"https://github.com/esy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esy-bash\n[![Build Status](https://bryphe.visualstudio.com/esy-bash/_apis/build/status/bryphe.esy-bash)](https://bryphe.visualstudio.com/esy-bash/_build/latest?definitionId=7)\n[![npm version](https://badge.fury.io/js/esy-bash.svg)](https://badge.fury.io/js/esy-bash)\n\nInstallation utilities for a bash environment - primed for Reason/OCaml\n\n\nThis package is intended to smooth over cases where OCaml packages rely on Unix utilities or a Bash environment.\n\nOn Linux and OS X, this package is essentially a no-op. On Windows, we install an isolated `cygwin` environment, ready to use for OCaml/OPAM, that we use to run a bash shell.\n\n\n## Installation\n\n```\n npm install\n```\n\nInstallation on Windows does the following:\n- Downloads `cygwin` into a `.cygwin` folder\n- Installs various utilities required on `cygwin` for OCaml \u0026 Reason - `rsync`, `patch`, `mingw`, etc.\n- Sets up OPAM to point to the Windows repository: https://github.com/fdopen/opam-repository-mingw/\n\n## Usage\n\n### Command Line\n\nThe __`esy-bash`__ command runs a script in a bash shell. On Linux and OS X, this just uses the default `bash` shell. On Windows, this delegates to the installed `cygwin` environment:\n\n```\nesy-bash echo 'HI'\n```\n\n### API\n\nAn API is also bundled:\n\n```\nconst { bashExec } = require(\"esy-bash\")\n\nawait bashExec(\"ls -a\")\n```\n\n## License\n\nThis source code is licensed under the [MIT License](./LICENSE).\n\nWhen installing, several other dependencies are downloaded - like Cygwin and the GNU utilities. These are bound by their own license terms, primarily the [GPL License](https://en.wikipedia.org/wiki/GNU_General_Public_License)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesy%2Fesy-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesy%2Fesy-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesy%2Fesy-bash/lists"}