Socket
Socket
Sign inDemoInstall

esy-bash

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esy-bash

Cross-platform bash utilities - primed for Reason/OCaml


Version published
Weekly downloads
220
decreased by-7.56%
Maintainers
1
Weekly downloads
 
Created
Source

esy-bash

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.

Installation

 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/

Usage

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'

API

An API is also bundled:

const { bashExec } = require("esy-bash")

await bashExec("ls -a")

License

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

FAQs

Package last updated on 18 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc