{"id":16092391,"url":"https://github.com/bukinoshita/sketch-json","last_synced_at":"2025-03-15T10:30:55.356Z","repository":{"id":44121807,"uuid":"99711588","full_name":"bukinoshita/sketch-json","owner":"bukinoshita","description":"Transform sketch files to json and json to sketch files","archived":false,"fork":false,"pushed_at":"2022-12-04T13:24:34.000Z","size":897,"stargazers_count":129,"open_issues_count":17,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T00:05:15.915Z","etag":null,"topics":["json","sketch","sketchapp","version-control","versioning"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bukinoshita.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-08T16:05:55.000Z","updated_at":"2024-04-08T03:03:53.000Z","dependencies_parsed_at":"2023-01-22T20:30:20.456Z","dependency_job_id":null,"html_url":"https://github.com/bukinoshita/sketch-json","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fsketch-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fsketch-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fsketch-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fsketch-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bukinoshita","download_url":"https://codeload.github.com/bukinoshita/sketch-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243718805,"owners_count":20336589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","sketch","sketchapp","version-control","versioning"],"created_at":"2024-10-09T16:07:51.441Z","updated_at":"2025-03-15T10:30:55.019Z","avatar_url":"https://github.com/bukinoshita.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sketch-json [![Build Status](https://travis-ci.org/bukinoshita/sketch-json.svg?branch=master)](https://travis-ci.org/bukinoshita/sketch-json)\n\n\u003e Transform sketch files to json and json to sketch files\n\n## Install\n\n```bash\n$ yarn add sketch-json\n```\n\n## Usage\n\n```javascript\nconst sketchJson = require('sketch-json')\n\nsketchJson.toJson().then(() =\u003e console.log('Done!'))\n// =\u003e Done!\n\nsketchJson.toSketch().then(() =\u003e console.log('Done!'))\n// =\u003e Done!\n```\n\n## How it works\n\nDifferent from [sketch2json](https://github.com/xaviervia/sketch2json), with `sketch-json` you can transform `json` to `sketch` and `sketch` to `json`.\n\n`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\n\nThe idea of this libraries is to prepare json files to be pushed/pull to github/gitlab/etc. Version control for designers!\n\n## Versioning design\n\n\u003cimg src=\"https://github.com/bukinoshita/smiley-sketch/blob/master/smile-sketch.gif\" width=\"500\"/\u003e\n\n## API\n\n### sketchJson\n\n#### .toJson()\n\nReturns a `promise`\u003cbr/\u003e\nTransform Sketch files to json\n\n#### .toSketch()\n\nReturns a `promise`\u003cbr/\u003e\nTransform json files to Sketch\n\n## Related\n\n* [git-sketch](https://github.com/bukinoshita/git-sketch) — Versioning design with ease\n* [sketch-json-cli](https://github.com/bukinoshita/sketch-json-cli) — CLI for this module\n* [smiley-sketch](https://github.com/bukinoshita/smiley-sketch) — Smiley sketch\n* [terminal-sketch](https://github.com/bukinoshita/terminal-sketch) — Terminal sketch\n\n## License\n\nMIT © [Bu Kinoshita](https://bukinoshita.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fsketch-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbukinoshita%2Fsketch-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fsketch-json/lists"}