New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wix-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wix-parser

Parser for *.wix files.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Wix Parser

Parser for *.wix (Legacy version of "Legend of Mir2") files.

Installation

npm install wix-parser

Usage

CommonJS

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

(async () => {
  const wix = await parse(path.join(process.cwd(), 'ChrSel.WIX'));
  console.log(wix.title);
  console.log(wix.wilPositions);

  await wix.dump('output.wix');
})();

TypeScript / ESM

import path from 'path';
import { parse, WixImageInfo } from 'wix-parser';

const wix: WixImageInfo = await parse(path.join(process.cwd(), 'ChrSel.WIX'));
console.log(wix.title);
console.log(wix.wilPositions);

await wix.dump('output.wix');

API

parse(filename: string): Promise<WixImageInfo>

Parses a .wix file and returns a WixImageInfo instance.

Parameters:

  • filename - Path to the .wix file

Returns: A Promise that resolves to a WixImageInfo instance

Throws:

  • Error if the file does not exist
  • Error if the file format is invalid

class WixImageInfo

Represents the parsed content of a .wix file.

Properties:

  • title: string - The title stored in the file header
  • wilPositions: number[] - Array of position offsets for images in the corresponding .wil file

Methods:

  • dump(filename: string): Promise<void> - Writes the data back to a .wix file

File Format

The .wix file format consists of:

  • 44 bytes: Title (null-terminated string)
  • 4 bytes: Index count (int32 LE)
  • N × 4 bytes: Position array (int32 LE each)

Contribution

PRs and issues are welcomed.

License

MIT

Keywords

wix

FAQs

Package last updated on 05 Feb 2026

Did you know?

Socket

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