https://github.com/zprodev/psd2json
Convart PSD layout to JSON.
https://github.com/zprodev/psd2json
Last synced: 5 months ago
JSON representation
Convart PSD layout to JSON.
- Host: GitHub
- URL: https://github.com/zprodev/psd2json
- Owner: zprodev
- License: mit
- Created: 2017-09-13T17:09:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T20:12:54.000Z (over 4 years ago)
- Last Synced: 2024-04-26T00:41:39.173Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 2.2 MB
- Stars: 29
- Watchers: 3
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psd2json
[](https://travis-ci.org/zprodev/psd2json)
[](https://www.npmjs.com/package/psd2json)
[](LICENSE)
Convart PSD layout to JSON.


# Usage
First, install this module in your project.
```
$ npm install psd2json
```
Import this module to your source code and call like below.
```
var psd2json = require('psd2json');
var jsonData = psd2json('./target.psd'); // return JSON
var jsonData = psd2json('./target.psd', './outdir'); // return JSON and output /outdir/target.json /outdir/target/*.png
var jsonData = psd2json('./target.psd', {outJsonDir:'./outdir'}); // return JSON and output /outdir/target.json
var jsonData = psd2json('./target.psd', {outImgDir:'./outdir'}); // return JSON and output /outdir/target/*.png
```
# License
This software is released under the MIT License, see [LICENSE](LICENSE)