node package manager

psd-extractor

psd-extractor NPM version

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

NPM newer

cli

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

js

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