Skip to content

Instantly share code, notes, and snippets.

Created Feb 14, 2014
What would you like to do?
fs = require 'fs'
path = require 'path'
PSD = require './psd.js/src/psd'
Parser = require './psd.js/src/parser'
psd = PSD.fromFile process.argv[2]
for layer in psd["layerMask"]["layers"]
if layer["adjustments"].hasOwnProperty "solid_fill"
console.log Parser.parseColor(layer["adjustments"]["solid_fill"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment