신원형

Initial commit

1 +asdffdsa.txt
2 +node_modules
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + // Use IntelliSense to learn about possible attributes.
3 + // Hover to view descriptions of existing attributes.
4 + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 + "version": "0.2.0",
6 + "configurations": [
7 + {
8 + "type": "pwa-node",
9 + "request": "launch",
10 + "name": "Launch Program",
11 + "skipFiles": [
12 + "<node_internals>/**"
13 + ],
14 + "program": "${workspaceFolder}\\main.js"
15 + }
16 + ]
17 +}
...\ No newline at end of file ...\ No newline at end of file
1 +import fs from 'fs/promises'
2 +import { login, load, logout } from './khcanvas.js';
3 +
4 +fs.readFile("asdffdsa.txt").then(it => {
5 + const auth = it.toString().split('|')
6 + login(auth[0], auth[1]).then(async driver => {
7 + load(driver, new Date())
8 + .then(it => {
9 + console.log(it)
10 + logout(driver)
11 + })
12 + }).catch(err => { console.log(err) })
13 +})
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 +{
2 + "name": "study-or-enjoy",
3 + "version": "1.0.0",
4 + "description": "",
5 + "main": "main.js",
6 + "scripts": {
7 + "test": "mocha --debug-brk"
8 + },
9 + "repository": {
10 + "type": "git",
11 + "url": "http://khuhub.khu.ac.kr/2018102202/study-or-enjoy"
12 + },
13 + "author": "",
14 + "license": "",
15 + "dependencies": {
16 + "@types/selenium-webdriver": "^4.1.0",
17 + "eslint": "^8.15.0",
18 + "selenium-webdriver": "^4.1.2"
19 + },
20 + "type": "module",
21 + "devDependencies": {
22 + "@types/node": "^17.0.35"
23 + }
24 +}