Skip to content

Repository files navigation

node-aseprite

Node.js implementation of Aseprite file format parsing using Kaitai struct definitions.

Installation

$ npm install --save aseprite

Usage

constAseprite=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}));

License

Copyright © 2020, Wavetilt LLC. Released under the MIT License.

About

Node.js implementaiton of Aseprite file format parsing using Kaitai struct definitions

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages