Socket
Socket
Sign inDemoInstall

aseprite

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aseprite

Aseprite file format parser


Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
1
Install size
80.9 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 14 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc