Skip to content

ding-e/psd2json

 
 

Repository files navigation

psd2json

Build Status npm license

Convart PSD layout to JSON.

01.png 02.png

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

About

Convart PSD layout to JSON.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%