0.0.8 • Published 5 years ago

courier_finder v0.0.8

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

courier_finder

Find a courier company from a passed in connote.

Build Status

Supported courier companies:

  • Australia Post
  • Couriers Please
  • Fastway

Usage

const courier_finder = require('courier_finder')

const connote = "xxxxxxxxx"
const courier = courier_finder(connote)

A valid connote will return an object

{
  courier_name: "Name of courier",
  tracking_url: "http://tracking_url_for_connote"
}

An invalid connote will return an error object

{
  error: true,
  message: "Courier details not found from provided connote: xxxx"
}

A connote will be invalid if it doesn't match any of the validity rules of the suppported courier companies.

Installation

npm install courier_finder

or

yarn add courier_finder

Licence

MIT

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

7 years ago

0.0.1

7 years ago