0.2.0 • Published 10 months ago

vpk2 v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

node-vpk2

Extractor and creator for the Valve Pack Format.

Prerequisites

Requires Node v13.2.0 and higher. Requires jBinary and crc, but npm/yarn will install them automatically if you follow these instructions.

Installing

NPM:

npm install vpk2

Yarn:

yarn add vpk2

How to use

To extract a V1/V2 VPK:

import { VPK } from "vpk2";

// load a vpk (V1/V2) (ALWAYS select the _dir file)
let my_vpk = new VPK("FILE_LOCATION_HERE");
my_vpk.load();

// extract it
my_vpk.extract("FILE_LOCATION_HERE");

To create a V1 VPK (V2 is not currently supported):

import { VPKcreator } from "vpk2";

// Load a directory
var my_vpk = new VPKcreator("FILE_LOCATION_HERE");
my_vpk.load();

// Save it as .vpk
my_vpk.save("FILE_LOCATION_HERE");
0.2.0

10 months ago

0.1.3

10 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago