Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/daniel-sc/bash-shell-to-bat-converter
- Owner: daniel-sc
- License: mit
- Created: 2019-10-15T19:21:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T11:18:40.000Z (about 1 year ago)
- Last Synced: 2024-12-15T23:47:24.391Z (6 days ago)
- Topics: bash, bash-hacks, batch-script, conversion, converter, windows-batch
- Language: TypeScript
- Homepage: https://daniel-sc.github.io/bash-shell-to-bat-converter
- Size: 3.95 MB
- Stars: 229
- Watchers: 9
- Forks: 45
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- starred - daniel-sc/bash-shell-to-bat-converter - Converter for bash shell scripts to windows batch files. (TypeScript)
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 ;-)