vladzilla / bash-shell-to-bat-converter

Converter for bash shell scripts to windows batch files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Bash script to Windows batch file converter

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

Setup:

git clone https://github.com/daniel-sc/bash-shell-to-bat-converter.git
cd bash-shell-to-bat-converter
npm install
npm run tsc

Usage:

node lib/cli.js FILE_TO_CONVERT.sh

This creates FILE_TO_CONVERT.bat.

Contribute

PRs always welcome ;-)

About

Converter for bash shell scripts to windows batch files.

License:MIT License


Languages

Language:TypeScript 71.2%Language:HTML 8.8%Language:JavaScript 8.0%Language:Shell 5.2%Language:Batchfile 4.8%Language:SCSS 2.1%