Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/wil-parser
Parser for *.wil (Legacy version of "Legend of Mir2", with *.wix) files.
https://github.com/xadillax/wil-parser
Last synced: 6 days ago
JSON representation
Parser for *.wil (Legacy version of "Legend of Mir2", with *.wix) files.
- Host: GitHub
- URL: https://github.com/xadillax/wil-parser
- Owner: XadillaX
- License: mit
- Created: 2022-04-13T08:04:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T20:03:56.000Z (16 days ago)
- Last Synced: 2024-10-29T22:40:38.942Z (16 days ago)
- Language: JavaScript
- Homepage:
- Size: 3.42 MB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wil Parser
Parser for *.wil (Legacy version of "Legend of Mir2", with *.wix) files.
## Installation
```shell
$ npm install --save wil-parser
```## Usage
```js
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.