3 ms·
Bash to ShellJS Transpiler
- nikolay 10y agoSource code: https://github.com/nfischer/shelljs-transpiler https://github.com/nfischer/shelljs-transpiler
- tracker1 10y agoInteresting effort, but my script with line continuation didn't seem to translate correctly... there's a few other things that didn't seem to go right either. I tend to reach for node scripts more often then almost anything if I need something that runs in windows and linux. I like node, it's got a pretty small initial footprint for install, though cross platform binary modules will be an issue for some time to come.
- nikolay 10y agoWell, it works most of the time. For example: local param_a="$1" works, but: local -r param_a="$1" doesn't. If more people find it interesting and contribute to it, it will get better!
- asimjalis 10y agoCouldn’t get the demo to translate when I added more lines of Bash to the input.