Skip to content

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

License

Notifications You must be signed in to change notification settings

hiddenswitch/node-aseprite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-aseprite

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

Installation

$ npm install --save aseprite

Usage

const Aseprite = require('aseprite');

const fs = require('fs');
const contents = fs.readFileSync('my-sprite.ase');

const ase = Aseprite.parse(contents, {
	clean: true // default; set to false if you want to retain buffer information
	inflate: true // default; set to false if you want to skip Zlib inflation
});

// If you didn't clean before, you can manually do so:
const cleanedAse = Aseprite.clean(ase);

// If you didn't inflate before, you can manually do so:
const inflatedAse = Aseprite.inflate(ase);

// Dump it to the console
console.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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kaitai Struct 91.5%
  • JavaScript 8.5%