sketchtool-cli

0.0.3 • Public • Published

sketchtool-cli

Simple cli wrapped around Sketch.app's sketchtool binary.

Will always use the binary installed with Sketch, so whenever Sketch updates, it takes the updated version of sketchtool as well.

Usage

yarn add sketchtool-cli
const sketchtool = require('sketchtool-cli');
 
// Check if sketchtool binary is available
sketchtool.check();
 
// Get current version (string)
sketchtool.version();  // = sketchtool --version
 
// Get path to sketch plugin folder
sketchtool.pluginFolder();  // = sketchtool show plugins
 
// Execute any command
sketchtool.run('dump ~/myFile.sketch');
 
// Abstractions for most commonly used commands
sketchtool.dump('~/myFile.sketch');  // = sketchtool dump ~/myFile.sketch
sketchtool.list('pages', '~/myFile.sketch');  // = sketchtool list pages ~/myFile.sketch

Package Sidebar

Install

npm i sketchtool-cli

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

81.5 kB

Total Files

8

Last publish

Collaborators

  • julianburr