test.js 486 Bytes
const { default: axios } = require("axios");
const express = require("express");
const router = express.Router();

const { login } = require("./E_Campus.js");
const parseICal = require("./ICal.js");

async function runrun() {
  const { data: ical } = await axios({
    url: "https://khcanvas.khu.ac.kr/feeds/calendars/user_YzxoryVh1hAQTeUJRljeaYavgmw1OXEGKIzNVpnI.ics",
    method: "GET",
    responseType: "blob",
  });
  const Jcal = parseICal(ical);
  console.log(Jcal);
}
runrun();