Instructions
Zimpel can encode and decode strings:
Code: Select all
local Zimpel = require('Zimpel')
local code = Zimpel.encode( "I have come here to chew bubblegum and kick ass...and I'm all out of bubblegum." )
print( code )
local msg = Zimpel.decode( code );
print( msg )
Code: Select all
local Zimpel = require('Zimpel')
local example = {
bubblegum = false,
kickass = true,
equipment = {
"sunglasses",
"shotgun"
}
}
local code = Zimpel.encodeTable( example )
print( code )
local dtable = Zimpel.decodeTable( code );
for i, v in pairs( dtable ) do
print( i, v )
end
Code: Select all
0H 0e 0l 3o 0 0W 0o 0r 3d 0. 5H 7w 5a 8e 5y 7u 0?
The code lives on github.