WFCD / warframe-worldstate-parser

:green_book: An Open parser for Warframe's Worldstate in Javascript

Home Page:https://wfcd.github.io/warframe-worldstate-parser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warframe Worldstate Parser

Parse the Warframe worldstate into useable javascript objects.

Supported by the Warframe Community Developers Crowdin Coverage Status Discord semantic-release: angular

Documentation

You can find the documentation here

Installation

$ npm i -S warframe-worldstate-parser

For the most part, you'll have a better experience consuming the product of this from the information in Live version

Example usage

// import WorldState from 'warframe-worldstate-data';
// using this syntax to make it precisely testable in a test
const WorldStateParser = await import('warframe-worldstate-parser');
const worldstateData = await fetch('https://content.warframe.com/dynamic/worldState.php').then((data) => data.text());

const ws = await WorldStateParser(worldstateData);

console.log(ws.alerts[0].toString());

Live version

See the parser in action here:

PC API PS4 API XB1 API Switch API

About

:green_book: An Open parser for Warframe's Worldstate in Javascript

https://wfcd.github.io/warframe-worldstate-parser/

License:MIT License


Languages

Language:JavaScript 99.8%Language:TypeScript 0.2%