Cross-platform bash utilities - primed for Reason/OCaml
Last updated 2 months ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @phated/esy-bash 
SYNC missed versions from official npm registry.


Build Status npm 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:


Command Line

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

Current Tags

  • 0.0.0                                ...           latest (2 months ago)

1 Versions

  • 0.0.0                                ...           2 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
Dev Dependencies (6)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |