# nodejs-jakarta-api

> Node.js wrapper for JakGo API (api.jakarta.go.id)

Latest version **1.0.0** (published 2020-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodejs-jakarta-api
pnpm add nodejs-jakarta-api
yarn add nodejs-jakarta-api
bun add nodejs-jakarta-api
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-17 |
| First published | 2020-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 123.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Irfan Maulana |
| Maintainers | irfan.maulana |
| Keywords | api, api-wrapper, jakarta-api, jakgo-api, jakgo |

## Links

- npm: https://www.npmjs.com/package/nodejs-jakarta-api
- Repository: https://github.com/mazipan/nodejs-jakarta-api
- Homepage: https://github.com/mazipan/nodejs-jakarta-api#readme
- Issues: https://github.com/mazipan/nodejs-jakarta-api/issues
- npm.io page: https://npm.io/package/nodejs-jakarta-api

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) 2.6.0
- [memory-cache](https://npm.io/package/memory-cache.md) 0.2.0

## Recent versions

- 1.0.0 (latest) — 2020-04-17

## README

# nodejs-jakarta-api

Node.js wrapper for JakGo API (api.jakarta.go.id) with Memory Cache.

> API Jakgo merupakan sebuah layanan yang menyediakan informasi data yang ada di lingkup Pemerintah Provinsi DKI Jakarta. Data ini mencakup semua bidang yang ada di Provinsi DKI Jakarta seperti Kesehatan, Kebersihan, Transportasi, dll.

## Get your token

+ Go to [api.jakarta.go.id](http://api.jakarta.go.id/)
+ Login or register
+ Create new Apps

## How to install

```bash
$ yarn add nodejs-jakarta-api node-fetch memory-cache
# OR
$ npm install nodejs-jakarta-api node-fetch memory-cache
```

## How to use?

Create instance

```js
import JakGoAPI from 'nodejs-jakarta-api';

const JakGoAPI = new JakGoAPI({ token: 'YOUR_TOKEN_HERE' });
```

Create request

```js
const response = await JakGoAPI.getKota();
```

## Available Methods

| Method Name 		  	 |  Parameter |  Description |
|----------------------|--------------|--------------|
| `getKota`  					 |  - 	 |  Get Kota 	 |
| `getKelurahan`  		 |  - 	 |  Get Kelurahan |
| `getKecamatan`  		 |  - 	 |  Get Kecamatan |
| `getRW`  						 |  - 	 |  Get RW |
| `getTPS`  					 |  - 	 |  Get Tempat Pembuangan Sampah |
| `getRSU`  					 |  -    |  Get Rumah Sakit Umum |
| `getRSK`  					 |  - 	 |  Get Rumah Sakit Khusus |
| `getPuskesmas`  		 |  - 	 |  Get Puskesmas |
| `getCCTV`  					 |  id: string 	 |  Get CCTV |
| `getPosPemadam`  		 |  - 	 |  Get Pos Pemadam Kebakaran |
| `getPetugasPemadam`  |  - 	 |  Get Petugas Pemadam Kebakaran |
| `getAmbulance`  		 |  - 	 |  Get Ambulance |
| `getPetugasDinkes`   |  - 	 |  Get Petugas Dinas Kesehatan |
| `getPetugasSatpolPP` |  - 	 |  Get Petugas Satpol PP |
| `getPosPolda`  			 |  - 	 |  Get Pos Polda |
| `getPetugasDishub`   |  - 	 |  Get Petugas Dishub |

## Credits

- [api.jakarta.go.id](http://api.jakarta.go.id/)

---

Copyright © 2020 by Irfan Maulana

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