sketch-measure-cli
v2.2.1
Published
Cli tool for sketch-measure plugin
Downloads
17
Readme
sketch-messure-cli
sketch-measure is a great plugin for sketch. Sometimes I want to embed it to workflow with cli, and it's really hard.
Neither sketchtool
nor coscript
give the full power to process skech files with sketch-measure.
And finally I write sketch-messure-cli to help to use sketch-measure with cli. Surely it's not exactly the same as sketch-measure plugin.
Installation & Usage
npm i -g sketch-measure-cli
and then:
sketch-measure convert demo.sketch -d destDir
If you don't set dest dir, the tool will use working-dir/sketch-file-name
instead.
So you can view measure pages in destDir
Attention
Text attributes transform
Most attributes of text is encoded as base64 string, and is not ease to parse it. Current only the first part of text's style info is used, others are dropped because cannot get the position info.
Symbols
Symbol artboards are removed because we cannot get preview image of every single symbol.
Credits
- sketch-measure to learn how sketch-measure works.
- react-sketch-viewer to parse text arributes.