ongkir
v0.0.5
Published
Shipping charges from logistic services in Indonesia
Downloads
9
Maintainers
Readme
ongkir
Get the shipping charges from logistic services in Indonesia.
Install
npm i ongkir --save
Example
import { JNE } from 'ongkir'
const jne = new JNE()
// set weight (kg)
jne.setWeight(1)
// search the origin location
const origins = await jne.queryOrigins('depok')
// set origin
jne.setOrigin(origins[0])
// search the destinations location
const dests = await jne.queryDestinations('setiabudi')
// set destination
jne.setDestination(dests[0])
// profit!
const results = await jne.getShippingCharges()
console.log(results)
Available Expeditions
- [ ] 21Express Jakarta
- [ ] Atri Xpress
- [ ] EMS Indonesia
- [ ] Expedito Express International
- [ ] Indah Logistic Cargo
- [x] JNE
- [x] J&T Express
- [ ] Lion Parcel
- [ ] NSS Express
- [ ] Pahala Express
- [ ] Pandu Logistics
- [x] Pos Indonesia
- [ ] Rapid Express
- [ ] RCL Logistics
- [ ] REX Kiriman Express
- [ ] RPX Express
- [x] Sicepat Express
- [x] TIKI
- [x] Wahana
License
MIT