Skip to content

zprodev/psd2json

Folders and files

NameName
Last commit message
Last commit date
Feb 7, 2018
Oct 24, 2018
Jan 25, 2018
Oct 10, 2017
Jan 25, 2018
Oct 10, 2017
Sep 13, 2017
Oct 24, 2018
Oct 24, 2018
Nov 26, 2019
Nov 26, 2019

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