@wsdot/go-orange
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

"Go Orange" detection

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

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!");
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @wsdot/go-orange

Weekly Downloads

0

Version

1.0.0

License

Unlicense

Unpacked Size

16 kB

Total Files

7

Last publish

Collaborators

  • jeff-jacobson