sketchtool-api

JavaScript API for sketchtool.

Usage no npm install needed!

<script type="module">
  import sketchtoolApi from 'https://cdn.skypack.dev/sketchtool-api';
</script>

README

sketchtool-api

JavaScript API for sketchtool.

travis codecov

sketchtool-api allows you to access sketchtool command-line tool via a simple JavaScript API.

This package does not bundle sketchtool, you need to have it installed on your machine. You can follow the instructions here: https://www.sketchapp.com/tool/.

Notice: For now only the dump command is supported.

Install

npm install --save sketchtool-api

Usage

import sketchtool from 'sketchtool'

// Dump a document as JSON
const doc = await sketchtool.dump('my-awesome-design.sketch')

License

MIT © Nicolas Gryman