
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
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에서 필요한 정보만 쉽게 가져올 수 있게 해줍니다.
The npm package caitlyn.js receives a total of 0 weekly downloads. As such, caitlyn.js popularity was classified as not popular.
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.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.