# djshs

> djshs site api

Latest version **1.0.1** (published 2023-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install djshs
pnpm add djshs
yarn add djshs
bun add djshs
```

## 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.0.1 |
| Published | 2023-03-24 |
| First published | 2023-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | franknoh |
| Maintainers | franknoh |

## Links

- npm: https://www.npmjs.com/package/djshs
- npm.io page: https://npm.io/package/djshs

## Dependencies (5)

- [http](https://npm.io/package/http.md) ^0.0.1-security
- [axios](https://npm.io/package/axios.md) ^1.3.4
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.9
- [@types/node](https://npm.io/package/@types/node.md) ^18.15.3
- [node-html-parser](https://npm.io/package/node-html-parser.md) ^6.1.5

## Recent versions

- 1.0.1 (latest) — 2023-03-24

## README

# djshs
## fuck djshs

### 1. How to install
```bash
$ npm install djshs
```

### 2. How to use

#### 1. create client
```javascript
const djshs = require('djshs');
const client = new djshs.Client();
```
or in typescript
```typescript
import { Client } from 'djshs';
const client = new Client();
```

#### 2. login
```javascript
client.login(20221302, 'password'); // student id, password
```

#### 3. get sutdent data
```javascript
client.getStudentInfo().then(data => {
    console.log(data);
});
```

#### 4. submit study location
```javascript
client.roomSubmit(17, 1, client.getCurrDate()) // room_id, time, date
```

#### 5. get points
```javascript
client.getPoint(1).then(data => { // grade
    console.log(data);
});
```

#### 6. get total points
```javascript
client.getTotalPoint(1).then(data => { // grade
    console.log(data);
});
```

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