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

2.2.0 • Public • Published

GRF Reader

GRF Reader is a TypeScript library to read Ragnarok GRF files.

Basic usage

The method getFile returns a Buffer of target file if exists.

You can get the file list on entries field.

import GRFReader from 'grf-reader';

const grf = new GRFReader('./data.grf');

const getClientInfo = async () => {
  const clientInfo = await grf.getFile('data\\clientinfo.xml');
  return clientInfo.toString('utf8');
};

getClientInfo()
  .then(console.log)
  .catch(console.error);

/grf-reader/

    Package Sidebar

    Install

    npm i grf-reader

    Weekly Downloads

    4

    Version

    2.2.0

    License

    Apache-2.0

    Unpacked Size

    40.2 kB

    Total Files

    22

    Last publish

    Collaborators

    • emanueljr