$ luarocks install stringio
stringio.open() gives you a file-like object which has Lua 5.2 compatible
methods like read() and lines(); stringio.create() gives you an object
with a write() method, and a value() method for the created string.
Versions
Dependencies
lua >= 5.1