YAML bindings for Luvit
Lua
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
Makefile
README.md
init.lua
license.txt
package.lua
test.lua

README.md

YAML codec for Luvit

Build Status

Example

local YAML = require('yaml')
local obj, serialized, content

obj = { 1, 2, 3, 4 }
p(obj)
serialized = YAML.encode(obj)
p(serialized)
content = YAML.decode(serialized)
p(content)
assert(obj[2] == content[2])

obj = { a = {'foo', true, false} }
p(obj)
serialized = YAML.encode(obj)
p(serialized)
content = YAML.decode(serialized)
p(content)
assert(obj.a[3] == content.a[3])

License

MIT