4.0.0 • Published 24 days ago
valorant.ts v4.0.0
Valorant API
NodeJS package that make more easier to use Valorant API
- valorant.ts isn't endorsed by Riot Games and doesn't 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.
- valorant.ts was created under Riot Games' "Legal Jibber Jabber" policy using assets owned by Riot Games. Riot Games does not endorse or sponsor this project.
- MIT License
Why Valorant.ts ?
- All-In-One
- Authentication
- API
- Riot API
- https://valorant-api.com
- Web Client
- Utils
- Patch Notes
- Crosshair Compiler
- Resources
- Region
- Locale
- Event Emitter
- Open-source
- Typescript Support
Installation
NPM:
npm install valorant.ts
PNPM:
pnpm add valorant.ts
Guide
Full Guide: valapi.github.io
Example
Authentication
await AuthClient.login("BestUsername", "SuperSecretPassword");
Daily Offers
async function getOffersOf(ItemsId: string) {
let DisplayName = "";
let DisplayIcon = "";
const GetWeaponSkinLevel = await ValorantApiCom.Weapons.getSkinLevels();
if (GetWeaponSkinLevel.data.data) {
for (const _SkinLevel of GetWeaponSkinLevel.data.data) {
if (_SkinLevel.uuid === ItemsId) {
DisplayName = _SkinLevel.displayName;
DisplayIcon = _SkinLevel.displayIcon;
break;
}
}
}
return {
Name: DisplayName,
Icon: DisplayIcon
};
}
const todayStore = await WebClient.Store.StoreFront.get(WebClient.getSubject());
for (const ItemID of todayStore.data.SkinsPanelLayout.SingleItemOffers) {
console.log(await getOffersOf(ItemID));
}
4.0.0
24 days ago
3.2.1-beta
9 months ago
3.3.0
8 months ago
3.2.0
10 months ago
3.0.2
12 months ago
3.0.1
1 year ago
3.0.0
1 year ago
2.1.0
1 year ago
2.0.1
1 year ago
2.0.0
2 years ago
1.4.4
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago