node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


psd-extractor NPM version

extract font faces, sizes and colors from PSDs, accumulate and see their usage count.

NPM newer


Usage: psd-extractor <file ...>

to extract data from PSDs in current directory (*.psd) run:

$ psd-extractor

or pass list of files as arguments:

$ psd-extractor foo.psd pages/*.psd

example output: examples/extracted.json


var psdExtractor = require("psd-extractor")
var fooData = psdExtractor('foo.psd')
var pageData = psdExtractor('pages/*.psd')
var allData = psdExtractor(['foo.psd', 'pages/*.psd'])