1.0.0 • Published 1 year ago

@wsdot/go-orange v1.0.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

"Go Orange" detection

Determines if a date falls within National Work Zone Awareness Week.

Node.js CI npm npm

Usage

Installation

npm install @wsdot/go-orange

Use

import {
  isWorkZoneAwarenessMonth,
  isWorkZoneAwarenessWeek,
} from "@wsdot/go-orange";

const today = new Date();
const isGoOrangeMonth = isWorkZoneAwarenessMonth(today);
const isNWZAWeek = isWorkZoneAwarenessWeek(today);

if (isGoOrangeMonth) {
  // Import the specific Go Orange CSS or whatever customizations you need to do.
  if (isNWZAWeek) {
    alert("It's National Work Zone Awareness Week!");
  }
}
1.0.0

1 year ago

0.0.1

1 year ago