Firstly: this is never going to be perfect. The string bug, no debug library and lack of a C compiler means that not all packages will be downloadable and usable. Nor is the emulated environment going to be 100% correct: there is a list of problems on the repo. However, it is possible to get many packages working off the shelf. Those which don't can be modified using BSRocks' built-in patching system.
Features
- Lua 5.1 environment with packages, require
- ANSI colour support
- Package manager (and dependencies obviously)
- A really nice REPL.
- Pretty cool fuzzy matching on command and package names
More screenshots
Getting Started
- First install from the Gist: pastebin run LYAxmSby get 6ced21eb437a776444aacef4d597c0f7/bsrocks.min.lua bsrocks
- Look for a package: bsrocks search colours
- Check it is the one you want: bsrocks desc ansicolors
- Install it: bsrocks install ansicolors
- Use it: bsrocks repl or bsrocks exec myFile.lua
Helping
As I mentioned earlier, more advanced packages will require changes to run correctly. My next job is to start writing these, but if you want to help, feel free to check out this page. The main GitHub lives here.
Edited by SquidDev, 18 October 2016 - 12:11 AM.