diff options
| author | wabilin <[email protected]> | 2020-08-01 09:16:44 +0900 |
|---|---|---|
| committer | wabilin <[email protected]> | 2020-08-01 09:16:44 +0900 |
| commit | 3345f689d479525eb889618de998b272b7f52028 (patch) | |
| tree | 4c26ce4f21b5de7705e6ecfdcdf7cf35cf4be91a /README.md | |
| parent | Remove getSchedule from index (diff) | |
| download | holo-schedule-3345f689d479525eb889618de998b272b7f52028.tar.xz holo-schedule-3345f689d479525eb889618de998b272b7f52028.zip | |
Update readme for API changes
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -16,10 +16,14 @@ npm install holo-schedule ## Usage -```js -const { parseScheduleHtml, getScheduleHtml } = require('holo-schedule') +```ts +import parseScheduleHtml from 'holo-schedule' +// or: +// const parseScheduleHtml = require('holo-schedule').default -// You can also get html by yourself +import getScheduleHtml from 'holo-schedule/lib/getScheduleHtml' + +// You can also get the html by yourself const html = await getScheduleHtml() // The dict stores steamers' icon data, you can save for using next time |