Skip to content

A TypeScript library for the League of Legends Client API (LCU) with full auto-generated types.

License

Notifications You must be signed in to change notification settings

dysolix/hasagi-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@hasagi/core

A TypeScript library that makes using the League of Legends client API (LCU) easy.

Features

  • Easy to use
  • Auto-generated types for every request
  • WebSocket support
  • Lockfile and process arguments support
  • Ability to prepare requests to modify their parameters and response

Installation

npm install @hasagi/core

Requests

You can use Hasagi to send a request like this

import { HasagiClient } from "@hasagi/core";

const client = new HasagiClient();
await client.connect();

// Type of response is automatically set by Hasagi
const response = await client.request("get", "/lol-summoner/v1/current-summoner");

Disclaimer

Hasagi is not endorsed by Riot Games and does not reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games and all associated properties are trademarks or registered trademarks of Riot Games, Inc

About

A TypeScript library for the League of Legends Client API (LCU) with full auto-generated types.

Topics

Resources

License

Stars

Watchers

Forks