rapi
simple Raja api package for the browser and node.js
Features
- get Data raja APi
- Supports the Promise API
- Automatic transforms for JSON data
Installing
Using npm:
$ npm i rajaapi
Example
Performing a GET
request
const rapi = const api = token: 'your token' // get provinsiapi // get kabupaten api // get kecamatan api // get kelurahan api // Want to use async/await? Add the `async` keyword to your outer function/method. { try const response = await api; console; catch error console; }
License
MIT