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.
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
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.
Symbol artboards are removed because we cannot get preview image of every single symbol.
- sketch-measure to learn how sketch-measure works.
- react-sketch-viewer to parse text arributes.