/sketch-json-helper

convert between Sketch JSON and Sketch Native Object

Primary LanguageTypeScriptMIT LicenseMIT

Sketch JSON Helper

NPM version Release CI

Gitmoji semantic-release

a Sketch JSON helper to convert between Sketch JSON and Sketch Native Object

Usage

From Sketch JSON to Sketch Native Object

import { fromSJSON } from 'sketch-json-helper';

const sketchObject = fromSJSON(sketchJSON); // sketchJSON should be a legal sketch json

From Sketch Native Object to Sketch JSON

import { toSJSON } from 'sketch-json-helper';

const sketchJSON = toSJSON(sketchObject); // sketchObject should be a sketchObject

License

MIT ® Arvin Xu