detect-tracking-code-company

1.0.0 • Public • Published

detect-tracking-code-company

Downloads Size

detect Iranian post company based on their tracking code

Install

npm:

npm install detect-tracking-code-company

Use

var {detect} = require('detect-tracking-code-company')

console.log(detect("<code>"));

if finding company was successful will return an object :

  {
    id:1,
    name:"post"
  }

if finding company is not successful will return "undefined"

list of available postal companies

  1. post
  2. tipaxco
  3. tipaxco (contract)
  4. mahex
  5. chapar
  6. karapost
  7. tntiran

want to help ?

if you want to help complete this library and make it more accurate you can create an issue describing the length and type of tracking code you received from a company (string, integer,word combination)

MIT © Peyman farahmand

Package Sidebar

Install

npm i detect-tracking-code-company

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.4 kB

Total Files

3

Last publish

Collaborators

  • pfndesign