Home

Awesome

gbx.js

GitHub GitHub file size in bytes jsDelivr hits

Current development for v1: https://github.com/thaumictom/gbx.js/pull/5

a slim, fast and easy to set up Gamebox (GBX) parser written in vanilla JavaScript

Getting started

Installing

Install via npm with $ npm install gbx and import it with import GBX from 'gbx';

Or instead include it in your HTML:

<script src="https://cdn.jsdelivr.net/npm/gbx"></script>

Basic usage

Create a new GBX instance, provide it with data either of a file type object or an Uint8Array and use the parsed data points after parsing.

let myGBX = new GBX({
    data: buffer,
    onParse: function(metadata) {
        console.log(metadata)
    }
})

Further reading