valorant.ts
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • Public • Published

Valorant API - Support Multifactor

Profile

NodeJS package that make more easier to use Valorant API

Downloads install size Known Vulnerabilities

LICENSE Github Discord


  • 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 ?

Installation

NPM:

npm install valorant.ts

Yarn:

yarn add valorant.ts

Guide

Full Guide: valapi.github.io/guide

Example

Authentication

await AuthClient.login("BestUsername", "SuperSecretPassword");

Two-Factor Authentication

await AuthClient.verify(428793 /* <--- Verification Code */);

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.getStorefront(WebClient.getSubject());

for (const ItemID of todayStore.data.SkinsPanelLayout.SingleItemOffers) {
    console.log(await getOffersOf(ItemID));
}

/valorant.ts/

    Package Sidebar

    Install

    npm i valorant.ts

    Weekly Downloads

    10

    Version

    3.3.0

    License

    MIT

    Unpacked Size

    68.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • ing3kth