PSD.js is a library for parsing Photoshop PSD files.
var Parser = require('psd.js').Parser;
var fs = require('fs');
var data = fs.readFileSync('/path/to/file.psd');
var psd = new Parser(data);
psd.parse();
console.log(psd);
The PSD.js node module was adapted from imaya's google closure-based frontend javascript library.
- Replace StreamReader implementation with a node Buffer-based implementation.
- Parse more ImageResource block types
Licensed under the MIT License. See LICENSE for details.