Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

grf-reader

emanueljr61Apache-2.02.2.0TypeScript support: included

Read GRF files with TypeScript

ragnarok, grf, reader, gravity

readme

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);