Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arvinxx/sketch-json-helper
convert between Sketch JSON and Sketch Native Object
https://github.com/arvinxx/sketch-json-helper
sketch sketchapp
Last synced: about 1 month ago
JSON representation
convert between Sketch JSON and Sketch Native Object
- Host: GitHub
- URL: https://github.com/arvinxx/sketch-json-helper
- Owner: arvinxx
- License: mit
- Created: 2020-07-27T06:45:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T12:14:38.000Z (about 2 years ago)
- Last Synced: 2024-12-25T12:11:50.673Z (about 1 month ago)
- Topics: sketch, sketchapp
- Language: TypeScript
- Homepage:
- Size: 111 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Sketch JSON Helper
[![NPM version][version-image]][version-url] [![Release CI][release-ci]][deploy-ci-url]
[![Gitmoji][gitmoji]][gitmoji-url] [![semantic-release][semantic-release]][semantic-release-repo] ![][license-url]
a Sketch JSON helper to convert between Sketch JSON and Sketch Native Object
[gitmoji]: https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg
[gitmoji-url]: https://gitmoji.carloscuesta.me/
[semantic-release]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-repo]: https://github.com/semantic-release/semantic-release
[license-url]: https://img.shields.io/github/license/arvinxx/sketch-json-helper[release-ci]: https://github.com/arvinxx/sketch-json-helper/workflows/Release%20CI/badge.svg
[deploy-ci-url]: https://github.com/arvinxx/sketch-json-helper/actions?query=workflow%3A%22Release+CI%22## Usage
### From Sketch JSON to Sketch Native Object
```typescript
import { fromSJSON } from 'sketch-json-helper';const sketchObject = fromSJSON(sketchJSON); // sketchJSON should be a legal sketch json
```### From Sketch Native Object to Sketch JSON
```typescript
import { toSJSON } from 'sketch-json-helper';const sketchJSON = toSJSON(sketchObject); // sketchObject should be a sketchObject
```## License
[MIT](./LICENSE) ® Arvin Xu
[version-image]: http://img.shields.io/npm/v/sketch-json-helper.svg?color=deepgreen&label=latest
[next-version-image]: https://img.shields.io/npm/v/sketch-json-helper/next?color=deepgreen&label=next
[alpha-version-image]: https://img.shields.io/npm/v/sketch-json-helper/alpha?color=deepgreen&label=alpha
[beta-version-image]: https://img.shields.io/npm/v/sketch-json-helper/beta?color=deepgreen&label=beta
[version-url]: http://npmjs.org/package/sketch-json-helper