Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
aseprite-loader
Advanced tools
This is a webpack loader that loads [Aseprite](https://www.aseprite.org/) [`.ase` and `.aseprite` files](https://github.com/aseprite/aseprite/blob/master/docs/ase-file-specs.md) via [ase-parser](https://github.com/TheCyberRonin/ase-parser).
aseprite-loader
This is a webpack loader that loads Aseprite .ase
and .aseprite
files via ase-parser.
It sets module.exports
of the file you're importing to an object of the type AsepriteLoader.Data
as defined below:
declare namespace AsepriteLoader {
interface Data {
frames: Array<AsepriteLoader.Frame>;
layers: Array<AsepriteLoader.Layer>;
tags: Array<AsepriteLoader.Tag>;
palette?: AsepriteLoader.Palette;
fileSize: number;
width: number;
height: number;
numFrames: number;
colorDepth: number;
numColors: number;
pixelRatio: string;
colorProfile: {
type: string;
flag: number;
fGamma: number;
};
}
interface Palette {
paletteSize: number;
firstColor: number;
lastColor: number;
colors: Array<Color>;
}
interface Color {
red: number;
green: number;
blue: number;
alpha: number;
name: string;
}
interface Cel {
layerIndex: number;
xpos: number;
ypos: number;
opacity: number;
celType: number;
w: number;
h: number;
rawCelData: Uint8Array;
}
interface Tag {
name: string;
from: number;
to: number;
animDirection: string;
color: string;
}
interface Layer {
flags: number;
type: number;
layerChildLevel: number;
blendMode: number;
opacity: number;
name: string;
}
interface Frame {
bytesInFrame: number;
frameDuration: number;
numChunks: number;
cels: Array<Cel>;
}
}
NOTE: Even if a Cel is of type 2 (zlib compressed), the
rawCelData
will always be inflated, as if it was type 0. See the Aseprite File Format Specification for more info.
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.ase(prite)?$/i,
use: ["aseprite-loader"],
},
],
},
};
const blueSlime = require("./blue-slime.aseprite");
console.log(blueSlime);
// Object { frames: [...], layers: [...], ... };
MIT
FAQs
This is a webpack loader that loads [Aseprite](https://www.aseprite.org/) [`.ase` and `.aseprite` files](https://github.com/aseprite/aseprite/blob/master/docs/ase-file-specs.md) via [ase-parser](https://github.com/TheCyberRonin/ase-parser).
The npm package aseprite-loader receives a total of 2 weekly downloads. As such, aseprite-loader popularity was classified as not popular.
We found that aseprite-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.