Just A Simple Combination
This is a lua formatter written in lua5.1. FormatLua
This is a lua vm built with emscripten. lua5.1.js
What I did is just combining them. So we can format lua with js.
An Inefficient Implement
Cause of the efficiency wasted in the process of lua2js ,it need about 1 second to launch. So if you find a lua formatter written in pure js someday, what you should do at once is just throwing this project away.