Andrew Maidah

Luxon Business Days

A JavaScript library for manipulating and calculating business days and holidays for the popular JavaScript time tool, Luxon.

Launched on

Visit   →
Photo for luxon-business-days npm package.

Features and Benefits

  • Add business days to a standard luxon DateTime instance. For instance, to calculate the arrival date of a shipment.

  • Customizable and extendable. Configure the business working days and holidays of your business.

  • Uses holiday “matcher functions” avoiding the need to manually maintain and update holiday date configs every year.

Technologies Used

  • JavaScript, Luxon, Webpack, JSDoc

Challenges and Solutions

At an e-commerce company I was working for at the time, I could tell shipping time calculations for custom business days and holidays was going to be a problem we needed to solve. I built luxon-business-days in my spare time and suggested the team use my tool when a team-member brought up the problem. As it turns out, many other people had the same problem and the library became popular after I open sourced it.

Results and Impact

Used in production web applications in 3 continents: North America, South America, and Europe!

  • NPM: 150k dls / mo

  • CDN: 800k hits / mo

Project Team

  • Andrew Maidah: Creator & Maintainer

Recognition

  • Creator of Luxon suggests developers use my library