Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daniel-sc/bash-shell-to-bat-converter

Converter for bash shell scripts to windows batch files.
https://github.com/daniel-sc/bash-shell-to-bat-converter

bash bash-hacks batch-script conversion converter windows-batch

Last synced: 5 days ago
JSON representation

Converter for bash shell scripts to windows batch files.

Awesome Lists containing this project

README

        

# Simple Bash script to Windows batch file converter

[![npm](https://img.shields.io/npm/v/bash-converter)](https://www.npmjs.com/package/bash-converter)
[![Coverage Status](https://coveralls.io/repos/github/daniel-sc/bash-shell-to-bat-converter/badge.svg?branch=master)](https://coveralls.io/github/daniel-sc/bash-shell-to-bat-converter?branch=master)

Converts bash scripts (`*.sh`) to windows batch files (`*.bat`).
This is _not_ supposed to be a fully complete/correct tool, but rather a starting point when converting scripts.
For simple scripts this might create correct results.

Try it online: https://daniel-sc.github.io/bash-shell-to-bat-converter/

## Usage

```sh
npx bash-converter FILE_TO_CONVERT.sh
```
This creates `FILE_TO_CONVERT.bat`.

## Contribute

PRs always welcome ;-)