Skip to content

Simple Node-parser for tracking the tracks of the postal service DPD

License

Notifications You must be signed in to change notification settings

kdanet/dpd-tracking

Repository files navigation

dpd-tracking

NPM

Simple Node-parser for tracking the tracks of the postal service DPD
Only dpd.ru

Install

npm install dpd-tracking

Basic Usage

const dpd = require('dpd-tracking')

dpd("YOUR TRACK-NUMBER")
    .then(response => {
        const { trackInfo, info } = response;
        console.log(trackInfo); 
        console.log(info);
    })
    .catch(e => console.log(e))
    
/*
{
    trackInfo: '✅Заказ оформлен.\n' +
    '✅Отправка принята у отправителя.\n' +
    '✅Отправка готова к транспортировке по маршруту.\n' +
    '✅Отправка следует по маршруту.\n' +
    '✅Отправка готова для выдачи получателю.\n' +
    '✅Доставлено.\n',
    info: {
        deliveryVariant: 'до пункта выдачи',
        deliveryDateIn: '13.04.2020',
        deliveryDateOut: '23.04.2020',
        deliveryCity: 'Павлодар'
    }
}
*/

Tests

git clone https://github.com/kdanet/dpd-tracking
cd dpd-tracking/
npm test

About

Simple Node-parser for tracking the tracks of the postal service DPD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published