Skip to content

Transform sketch files to json and json to sketch files

Notifications You must be signed in to change notification settings

bukinoshita/sketch-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sketch-json Build Status

Transform sketch files to json and json to sketch files

Install

$ yarn add sketch-json

Usage

const sketchJson = require('sketch-json')

sketchJson.toJson().then(() => console.log('Done!'))
// => Done!

sketchJson.toSketch().then(() => console.log('Done!'))
// => Done!

How it works

Different from sketch2json, with sketch-json you can transform json to sketch and sketch to json.

sketch-json will generate the json files by zipping the sketch file and decompressing it. By doing that a sketch folder will be generated with all json files

The idea of this libraries is to prepare json files to be pushed/pull to github/gitlab/etc. Version control for designers!

Versioning design

API

sketchJson

.toJson()

Returns a promise
Transform Sketch files to json

.toSketch()

Returns a promise
Transform json files to Sketch

Related

License

MIT © Bu Kinoshita