Lua parser for CSV or JSON files from wow.tools by Marlamin
Prints UiMap.db2
local parser = require "wowtoolsparser"
local iter = parser:ReadCSV("uimap")
for line in iter:lines() do
print(table.unpack(line))
end
Prints the most recent classic ChrRaces.db2 build
local parser = require "wowtoolsparser"
parser:ExplodeCSV(parser:ReadCSV("chrraces", {build="1.13"}))
Prints a specific GlobalStrings.db2 build for the French locale, keyed by header name
local parser = require "wowtoolsparser"
local options = {
header = true, -- index keys by header
build = "7.3.5.26972",
locale = "frFR",
}
local iter = parser:ReadCSV("globalstrings", options)
for line in iter:lines() do
print(line.ID, line.BaseTag, line.TagText_lang)
end