Socket
Socket
Sign inDemoInstall

ongkir

Package Overview
Dependencies
19
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ongkir

Shipping charges from logistic services in Indonesia


Version published
Weekly downloads
0
Maintainers
1
Install size
1.55 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 28 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc