Opendota.js
🎁 An API wrapper for OpenDota in NodeJS.
Install / Use
/learn @wlamason/Opendota.jsREADME
opendota.js
A minimalistic wrapper for the opendota api.
Install
npm install opendota.js
Example Usage
const { OpenDota } = require("opendota.js");
// Remember to store your api keys safely. I recommend using dotenv.
const opendota = new OpenDota("OPTIONAL_API_KEY");
// Search players by personaname
opendota.search({ q: "noob" }).then(response => console.log(response));
// Get the health of the opendota api service
opendota.getHealth().then(response => console.log(response));
// Using async/await syntax
async function awaitDemo() {
const response = await opendota.search( { q: "noob" } );
console.log(response);
}
awaitDemo();
Features
- Covers 100% of the 54 opendota api endpoints.
- 0 dependencies.
- Fully documented and tested.
- Respects opendota api rate limits.
- Reduces boilerplate calls to opendota api.
Docs
Documentation can be found in DOCS.md.
Reporting Bugs
Please use the issues tab above.
Development - Run tests
npm run test
Development - Generate Docs
npm run docs
Development - Generate Types
npm run types
Author
👤 Will Lamason
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 Will Lamason.
This project is Apache License 2.0 licensed.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
