Package Exports
- dota2-user
- dota2-user/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dota2-user) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dota 2 for SteamUser
This module aims to provides a flexible TypeScript/Node.js interface for interacting with the Dota 2 Game Coordinator.
It utilises a node-steam-user SteamUser instance for Steam communication.
To use node-dota2-user, please ensure you have node-steam-user v4.2.0 or later and Node.js v14 or later installed.
Expectations
I initially wrote this module cause I wanted to get data from the Dota 2 GC with Node.js, but had no way of doing so without node-dota2 which is deprecated.
As of now, this module fulfills my use-cases and the use-case of communicating with the game coordinator. It can likely do what you need.
I'm unlikely to implement additional features in the short term as I don't have a need for them.
In addition, this module does not need frequent updates due to its small dependency pool.
That said, I welcome any feedback, suggestions, issues, or pull requests from the community.
A board with some ideas for future features is available here: https://github.com/users/itsjfx/projects/1
Please consider this in alpha state, similar to node-dota2.
If you're willing to use Go, I'd suggest checking out paralin/go-dota2, a more feature-rich package.
Goals
- Types
- Simple module development and consumption
- Good documentation
- Auto-generated code so I can do less work
Documentation
- Setup - for getting started
- Steam Interaction
- Troubleshooting
Examples
See examples/ for TypeScript examples.
Thanks to
- DoctorMcKay for node-steam-user which this module uses for Steam interaction
- paralin for go-dota2 which parts of this module is based off
- The node-dota2 team for the original Dota 2 JS implementation
- The ValvePython team for their dota2 module