clbg-ts
v1.0.3
Published
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/lanbuddy/clbg-ts/blob/main/LICENSE)
Downloads
307
Readme
clbg-ts
A Node.js package for creating, reading and extracting CLBG (Compressed LANBuddy Game) files.
Installation
npm install clbg-ts
-or-
yarn add clbg-ts
Usage
import { CLBGFile } from 'clbg-ts'
// Open clbg file
const clbgFile = await CLBGFile.fromFile("./file.clbg")
// Show metadata
console.log(clbgFile.metadata)
// Extract the cover
await clbgFile.saveCover("./cover.png")
// Extract the game
clbgFile.extractGame("./output_dir/").then(() => {
console.log("Game extracted.")
});
License
This project is licensed under the MIT License - see the LICENSE file for details.