Skip to content

Node.js module that interfaces with Greek courier companies.

License

Notifications You must be signed in to change notification settings

ComradeTurtle/courier-api

Repository files navigation

courier-api

Node.js module that interfaces with Greek courier companies.

Current supported couriers

Install

Using npm

  • npm install courier-api

Using yarn

  • yarn add courier-api

Usage example

const DHL = new (require("courier-api").DHL);
// or
const {DHL} = require("courier-api");
// It's the same for the other supported couriers

const courier = new DHL();
courier.get("TRACK_ID").then((response) => {
	/* your code here */
}).catch(console.error);
// or
(async () => {
	const data = await courier.get("TRACK_ID");
	/* your code here */
})();

// same goes for the other couriers!

About

Node.js module that interfaces with Greek courier companies.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published