@mrkwon/sketch-parser
v1.0.3
Published
sketch解析
Downloads
4
Readme
var parseSketchData = require("sketch-parser").parseSketchData;
var fs = require("fs")
//sketchData
var data = JSON.parse(fs.readFileSync("./test/pageData.json"))
//parseData
var dataO = parseSketchData(data)
// console.log(dataO)
fs.writeFileSync("./test/test.json", JSON.stringify(dataO, "", "\t"))