Node.js implementation of Aseprite file format parsing using Kaitai struct definitions.
$ npm install --save asepriteconstAseprite=require('aseprite');constfs=require('fs');constcontents=fs.readFileSync('my-sprite.ase');constase=Aseprite.parse(contents,{clean: true// default; set to false if you want to retain buffer informationinflate: true// default; set to false if you want to skip Zlib inflation});// If you didn't clean before, you can manually do so:constcleanedAse=Aseprite.clean(ase);// If you didn't inflate before, you can manually do so:constinflatedAse=Aseprite.inflate(ase);// Dump it to the consoleconsole.log(require('util').inspect(ase,{depth: null,colors: true}));Copyright © 2020, Wavetilt LLC. Released under the MIT License.