MCPcopy Index your code
hub / github.com/daniel-sc/bash-shell-to-bat-converter

github.com/daniel-sc/bash-shell-to-bat-converter @v2.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.6.0 ↗ · + Follow
57 symbols 95 edges 22 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Simple Bash script to Windows batch file converter

npm Coverage Status

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

npx bash-converter FILE_TO_CONVERT.sh

This creates FILE_TO_CONVERT.bat.

Contribute

PRs always welcome ;-)

Extension points exported contracts — how you extend this code

CommandHandler (Interface)
(no doc) [4 implementers]
src/command-handler.ts
Loc (Interface)
(no doc)
src/types.ts
ParameterExpansion (Interface)
(no doc)
src/types.ts
CommandExpansion (Interface)
(no doc)
src/types.ts
ArithmeticExpansion (Interface)
(no doc)
src/types.ts
Script (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

convertBashToWin
called by 35
src/convert-bash.ts
convertCommand
called by 19
src/convert-bash.ts
indent
called by 4
src/convert-bash.ts
handle
called by 2
src/command-handler.ts
convertPaths
called by 2
src/convert-paths.ts
splitParams
called by 2
src/util.ts
performExpansions
called by 2
src/convert-bash.ts
isStatement
called by 1
src/types.ts

Shape

Interface 22
Method 16
Class 12
Function 7

Languages

TypeScript100%

Modules by API surface

src/types.ts22 symbols
src/convert-bash.ts12 symbols
ui/src/app/app.component.ts4 symbols
ui/e2e/src/app.po.ts4 symbols
src/rm-handler.ts4 symbols
src/cp-handler.ts4 symbols
ui/src/app/app.module.ts2 symbols
src/command-handler.ts2 symbols
ui/e2e/protractor.conf.js1 symbols
src/util.ts1 symbols
src/convert-paths.ts1 symbols

For agents

$ claude mcp add bash-shell-to-bat-converter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page