poe-dat-export
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

poe-dat-export

NPM Version LICENSE TOP LANGUAGE ISSUES

Table of Contents

Introduction

The purpose of this library is to provide developers a way to extract table data from the game Path of Exile (PoE) by Grinding Gear Games. This library originated from poe-dat-viewer by SnosMe.

Note: This product isn't affiliated with or endorsed by Grinding Gear Games in any way.

Overview

The key objectives of this library are:

  • Provide API for extracting game data as tables
  • Support all languages

Installation

Install the latest stable version of this library:

 npm install --save poe-dat-export

Getting started

import { Exporter, Loaders, Language } from "poe-dat-export";

const loader = new Loaders.OnlineBundleLoader({});

const exporter = new Exporter.DatExporter({
  bundleLoader: loader,
});

try {
  const result = await exporter.export("CurrencyItems", Language.German);
  console.log(result[0]);
} catch (error) {
  // error handling
}

/**
 * Prints: 
{
  _index: 0,
  BaseItemTypesKey: 4,
  Stacks: 40,
  CurrencyUseType: 2,
  Action: 'add_armour_quality',
  FullStack_BaseItemTypesKey: 18374403900871475000,
  ShopTag: 18374403900871475000,
  etc.
}
 */

Debug

Debug information can be displayed by setting the DEBUG environment variable. In order to display debug information of all modules add poe-dat:* to DEBUG. Multiple entries are separated by comma or space. For example, to only show debug information of the DatExporter set DEBUG=poe-dat:DatExporter. For more information refer to the debug library.

Related projects

Package Sidebar

Install

npm i poe-dat-export

Weekly Downloads

8

Version

2.0.0

License

MIT

Unpacked Size

129 kB

Total Files

67

Last publish

Collaborators

  • moepmoep12