bat2js
Version:
Batch to JavaScript compiler
36 lines (24 loc) • 701 B
Markdown
# bat2js
Batch to JavaScript compiler
[](https://www.npmjs.com/package/bat2js)
[](https://coveralls.io/github/benja2998/bat2js?branch=main)
Currently not very functional. This is very much alpha quality software.
## Installation
```bash
npm install -g bat2js
```
## Usage
```bash
bat2js <input.bat>
```
This is an example of a batch file that can be compiled to JavaScript:
```batch
@echo off
rem Declare variables
set hi=Hello
set world=world!
rem Output text to the console
echo %hi% %world%
echo Goodbye world!
pause
```