Skip to content

tableflip/nagel-shipping-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nagel Group Shipping rates CircleCI

Getting Started

npm install

npm run test

Exports helper functions that help look up zones and rates from the Nagel Group Rate Card.

Usage

const shipping = require('nagel-shipping-rates')

shipping.getZone('SE22 9BA')
// { placeName: 'South East London', zone: 5 }

// shipping.getRate(departureZone, deliveryZone, pallets)
shipping.getRate(5, 3, 1)
// 71.31

A (╯°□°)╯︵TABLEFLIP side project.