Skip to content

Get the shipping charges from logistic services in Indonesia

Notifications You must be signed in to change notification settings

mgilangjanuar/ongkir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • JNE
  • J&T Express
  • Lion Parcel
  • NSS Express
  • Pahala Express
  • Pandu Logistics
  • Pos Indonesia
  • Rapid Express
  • RCL Logistics
  • REX Kiriman Express
  • RPX Express
  • Sicepat Express
  • TIKI
  • Wahana

License

MIT