unwxvpkg
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

unwxvpkg

Unpack *.wx[va]pkg files.

Installation

Using npm:

$ npm i -g unwxvpkg

Using yarn:

$ yarn add -g unwxvpkg

Usage

unwxapkg <your *.wx[va]pkg file> [output folder]

unwxapkg core.wxvpkg
// or unwxvpkg core.wxvpkg

unwxapkg is same as unwxvpkg.

Node.js

const Wxapkg = require('unwxvpkg');
// import * as Wxapkg from 'unwxvpkg';
const fs = require('fs');
const path = require('path');
 
const file = fs.readFileSync('your.wxvpkg');
const wxapkg = new Wxapkg(file);
const files = wxapkg.decode();
 
files.forEach((f) => {
  // custom handle file writing
  fs.writeFileSync(path.join(process.cwd(), f.name), f.chunk, 'binary');
});

Readme

Keywords

Package Sidebar

Install

npm i unwxvpkg

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

9.74 kB

Total Files

7

Last publish

Collaborators

  • fredtsang