
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
caitlyn.js
Advanced tools
**복잡한** 라이엇 Api를 **필요한 것만 간단하게**!
const caitlyn = require("./Caitlyn.js");caitlyn.setToken( 토큰 );
caitlyn.setToken(토큰);
토큰은 아래와 같이 dotenv를 사용하여 관리하는 것을 매우 권장합니다.
index.js
require("dotenv").config();
caitlyn.setToken(process.env.RIOT_API);
.env
RIOT_API=RGAPI-...
caitlyn.getSummoner( 소환사 이름, 태그 );
let summoner = await caitlyn.getSummoner(소환사 이름, 태그);
console.log(summoner);
summoner.profileIconId 같은 경우
console.log("https://ddragon.leagueoflegends.com/cdn/" + ddver[0] + "/img/profileicon/" + summoner.profileIconId + ".png");
로 소환사의 프로필 사진을 가져올 수 있습니다. ddver[0] 은 아래의 DDragon - version 함수를 참고해주세요.
summoner.now.queueId 같은 경우
let queinf = await caitlyn.ddragon.queueInfo(summoner.now.queueId);
로 현재 플레이 중인 게임이 무엇인지 ( ex. 칼바람나락, URF ) 찾을 수 있습니다.
summoner.now.time 같은 경우
let time_tmp = Math.floor(summoner.now.time / 60);
console.log("**" + time_tmp + "** 분 **" + (summoner.now.time - (time_tmp * 60)) + "** 초");
와 같이 사용하시면 됩니다.
caitlyn.getRecentMatch( summoner, count );
let summoner = await caitlyn.getSummoner(소환사 이름, 태그);
console.log(summoner);
let matchs = await caitlyn.getRecentMatch(summoner, 5);
console.log(matchs);
//최근 5개 게임 정보
caitlyn.ddragon.version();
let ddver = await caitlyn.ddragon.version();
console.log(ddver[0]);
//DDragon 최신 버전
caitlyn.ddragon.queueInfo( Queue ID );
let queinf = await caitlyn.ddragon.queueInfo(440);
console.log(queinf);
//자유랭크
FAQs
복잡한 라이엇 API에서 필요한 정보만 쉽게 가져올 수 있게 해줍니다.
We found that caitlyn.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.