Skip to content

Instantly share code, notes, and snippets.

@Madsy
Created June 7, 2019 16:02
Show Gist options
  • Save Madsy/27dd62795cedae3a6f45abf9967ed734 to your computer and use it in GitHub Desktop.
Save Madsy/27dd62795cedae3a6f45abf9967ed734 to your computer and use it in GitHub Desktop.
local data_raw = require("data_raw");
local json = require ("dkjson");
local str = json.encode (data_raw, { indent = true });
local current_outFile = io.output();
io.output("data_raw.js");
io.output():write(str);
io.output():flush();
io.output():close();
io.output(current_outFile);
os.exit(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment