psd2json

1.4.0 • Public • Published

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

Package Sidebar

Install

npm i psd2json

Weekly Downloads

2

Version

1.4.0

License

MIT

Unpacked Size

6.52 kB

Total Files

4

Last publish

Collaborators

  • zprodev