1.1.1 • Published 7 years ago

sketch-parser v1.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

sketch-parser

Eliminate the differences in the output of the following two ways:

  • run sketchtool
  • unzip .sketch and read .json

version Node.js Sketch.app document Build Status

Class: Parser

new Parser(filePath, needSketchTool)

Creates a new Parser object.

And sets the parser.filePath property to the provided sketch file path, maybe sets the parser.needSketchTool property to the provided option.

parser.needSketchTool

  • needSketchTool <Boolean>

Whether or not need sketchtool to get data, the default value is true.

parser.getDocumentData();

Returns a whole document's data.

parser.getPageDataList();

Returns a list containing all the page data.

license

MIT