Node-Underlords

TypeScript / JavaScript library for Dota Underlords.
Features
- Share code parsing
- Share code encoding
Installation
This is a Node.js module available through the NPM registry and GitHub Packages.
Before installing, please download and install a Node.js version greater or equal to 10.0.
Installation of the module is done using the npm install command:
npm install underlords
Quick Start
import { ShareCodeV8 } from "underlords";
const shareCodeString =
"8qAMAAP4BAK4BAATjJ/5uAEZuAAAgEVM0LgAAAG0AbQAACwAAAP8BDAABCRsI/wAJARcBAQAOAQUBAQAGES0QbUBHOlcBEmoBAAFIACABaBABAyAAEAEpLAIgIAAwAAAGAgEgAAWCAHUR2gB0EQkBAQRjAAVyLBAAAgABBAMGdycAdy4fAK4BAA==";
const shareCode = ShareCodeV8.fromBase64String(shareCodeString);
console.log(shareCode.boardUnitIDs[0][0]);
console.log(shareCode.unitItems[4][4].itemID);
shareCode.boardUnitIDs[0][0] = 46;
const resultingShareCode = shareCode.toBase64String();
For all available fields, visit the API Docs of the current share code.
For unit and items ids, visit the Fortify Repo.
Contributing
Contributing Guide
License
MIT
Disclaimer
This project is not affiliated with Valve Corporation.
Dota Underlords, Dota and Steam are registered trademarks of Valve Corporation.