# university-schedule-parser

> Parse schedule for some university in Indonesia.

Latest version **1.2.3** (published 2019-05-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install university-schedule-parser
pnpm add university-schedule-parser
yarn add university-schedule-parser
bun add university-schedule-parser
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2019-05-28 |
| First published | 2019-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matias Alvin |
| Maintainers | alvinmatias69 |
| Keywords | parser |

## Links

- npm: https://www.npmjs.com/package/university-schedule-parser
- Repository: https://github.com/alvinmatias69/schedule-parser
- Issues: https://github.com/alvinmatias69/schedule-parser/issues
- npm.io page: https://npm.io/package/university-schedule-parser

## Dependencies (1)

- [jsdom](https://npm.io/package/jsdom.md) ^15.1.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2019-05-28
- 1.2.2 — 2019-05-24
- 1.2.1 — 2019-05-24
- 1.2.0 — 2019-05-17
- 1.1.0 — 2019-05-17
- 1.0.0 — 2019-05-17

## README

# University Schedule Parser
Parse schedule for some university in Indonesia.

## Installation

Using npm:
```sh
$ npm install university-schedule-parser
```

## Usage

In es6:
```javascript
  import {ScheduleType, parse} from 'university-schedule-parser';

  .
  .
  .

  // Schedule webpage html in string
  const html = '...';

  // University name
  const type = ScheduleType.Telkom;
  
  const schedule = parse(html, type);
```

Parsed schedule will have properties described below.

### StudentData
| Name        | Type                | Description       |
|-------------|---------------------|-------------------|
| `name`      | string              | Student name      |
| `nim`       | string              | Student ID        |
| `schedules` | array of `Schedule` | Student schedules |

### Schedule
| Name         | Type   | Description                                          |
|--------------|--------|------------------------------------------------------|
| `day`        | string | Day name for current schedule (english / indonesian) |
| `start`      | string | Start hour for current schedule                      |
| `end`        | string | End hour for current schedule                        |
| `name`       | string | Schedule name                                        |
| `room`       | string | Schedule room name                                   |
| `class_name` | string | Schedule class name                                  |
| `code`       | string | Schedule code                                        |

## Supported Universities
Below are supported university schedule and their respective enum type.

| Type     | University                                           |
|----------|------------------------------------------------------|
| `Telkom` | [Telkom University](https://telkomuniversity.ac.id/) |
| `UGM`    | [Universitas Gadjah Mada](https://ugm.ac.id/en/)     |


---
**Matias Alvin(2019)**

---
_Source: https://npm.io/package/university-schedule-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
