darkrc/bin/lesc
DarkWiiPlayer c52ff69d2a Add lesc (Lua Escape) executable
Uses %q to escape the entire input text to be pasted as-is into any Lua
document.
2020-07-29 10:57:21 +02:00

3 lines
77 B
Lua
Executable file

#!/usr/bin/env lua
print(string.format("%q", io.read("a"):gsub("\n$", "")))