Skip to content

Commit 8f3dabf

Browse files
author
rs222kn
committed
updated package and readme
1 parent 6d3e368 commit 8f3dabf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ timeEdit.getTodaysSchedule('ny105')
2121
console.log(er);
2222
});
2323

24+
// schedule by specific date: year, month, day
25+
timeEdit.getScheduleByDate('ny105', new Date())
26+
.then((roomSchedule) => {
27+
console.log(JSON.stringify(roomSchedule, null, 2));
28+
}).catch((er) => {
29+
console.log(er);
30+
});
31+
2432
// full schedule
2533
timeEdit.getSchedule('ny105')
2634
.then((schedule) => {

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timeeditapi",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"description": "web scraper api to easy get schedule information from timeedit",
55
"main": "api.js",
66
"scripts": {

0 commit comments

Comments
 (0)