esy-bash 0.1.0-dev-948f421ca3e0b24f3787a0a3b241b873c55f9beb
Install from the command line:
Learn more about npm packages
$ npm install @manasjayanth/esy-bash@0.1.0-dev-948f421ca3e0b24f3787a0a3b241b873c55f9beb
Install via package.json:
"@manasjayanth/esy-bash": "0.1.0-dev-948f421ca3e0b24f3787a0a3b241b873c55f9beb"
About this version
Installation utilities for a bash environment - primed for Reason/OCaml
This package is intended to smooth over cases where OCaml packages rely on Unix utilities or a Bash environment.
On 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.
npm install
Installation on Windows does the following:
- Downloads
cygwin
into a.cygwin
folder - Installs various utilities required on
cygwin
for OCaml & Reason -rsync
,patch
,mingw
, etc. - Sets up OPAM to point to the Windows repository: https://github.com/fdopen/opam-repository-mingw/
The 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:
esy-bash echo 'HI'
An API is also bundled:
const { bashExec } = require("esy-bash")
await bashExec("ls -a")
This source code is licensed under the MIT License.
When installing, several other dependencies are downloaded - like Cygwin and the GNU utilities. These are bound by their own license terms, primarily the GPL License
Details
- esy-bash
- ManasJayanth
- over 1 year ago
- MIT
- 5 dependencies
Assets
- esy-bash-0.1.0-dev-948f421ca3e0b24f3787a0a3b241b873c55f9beb.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 0.1.0-dev-b7034a7d904ed1bca8762d0cc6a82b22d851e3f0
- 0.1.0-dev-e88fefd93ac52fb9d95fa1e4aeb3f02b07344a66
- 0.1.0-dev-1b6f399da393950c91f09c7221ae4a4c909abbd4
- 0.1.0-dev-ae9a0f0977066a6fd4ce2ae0464d4a3d9b89154e
- 0.1.0-dev-948f421ca3e0b24f3787a0a3b241b873c55f9beb
- 0.1.0-dev-803502a999cff304919ff5fb38e48476771c60d2
- 0.1.0-dev-89205bcb51ae6463a425add041581d81529317c4
- 0.1.0-dev-dbc2a11a02a66f89af73d5f5d4efa925d6dd60d4
- 0.1.0-dev-6c82e5dd45265233dffbfeaed987c629ae9a2b0b
- 0.1.0-dev-66ff009ca4793d0047446e27a46932358b657422