New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wsdot/go-orange

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wsdot/go-orange

Determines if a website should be using "Go Orange" theming for National Work Zone Awareness Week (NWZAW).

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 04 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts