1.0.4 • Published 2 years ago

wil-parser v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Wil Parser

Parser for .wil (Legacy version of "Legend of Mir2", with .wix) files.

Installation

$ npm install --save wil-parser

Usage

const { parse } = require('wil-parser');

const wil = await parse('ChrSel.wil');

for (let i = 0; i < wil.count(); i++) {
  const bitmap = await wil.getBitmap(i);

  const bmp = await bitmap.dumpBmp(); // Buffer of a *.bmp
  const png = await bitmap.dumpPng(); // Buffer of a *.png
  const jpg = await bitmap.dumpJpeg(); // Buffer of a *.jpg
}

Contribution

PRs and issues are welcomed.

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago