@wfcd/arsenal-parser
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Arsenal Parser

Parse the Warframe Arsenal Twitch extension data into useable javascript objects.

Supported by the Warframe Community Developers Coverage Status Build Status Discord

Documentation is available here

Example usage

import ArsenalData from 'ArsenalParser.js';
import fetch from 'node-fetch.js';

const baseURL = 'https://content.warframe.com/dynamic/twitch/getActiveLoadout.php?account=';

async function fetchArsenal(username) {
  // Fetch the data for the specified username
  const data = await fetch(baseURL + encodeURIComponent(username.toLowerCase()))
    .then((res) => res.json());
  if (data.errors) {
    throw new Error(data.errors);
  }

  return new ArsenalData(data);
}

Package Sidebar

Install

npm i @wfcd/arsenal-parser

Weekly Downloads

92

Version

2.0.2

License

MIT

Unpacked Size

25.4 kB

Total Files

23

Last publish

Collaborators

  • aliasfalse