Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@clipboard-health/usa-states

Latest version: v1.7.20

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: clipboard_engineering, mikecookcbh, sharedenginner_cbh, user_engineer
66 Stars
9 Forks
42 Versions
27.3K Downloads
TypeScript Repo language

Scan summary

@clipboard-health/usa-states was last scanned on 30 Nov 2026 at version 1.7.20. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 42 versions; the latest 2 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 1.7.20.
  • Downloads: 27,321 downloads.

Versions

42 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.7.20 LATEST 30 Nov 2026 No rules fired
1.7.19 27 Nov 2026 No rules fired
1.7.18 18 Nov 2026 Not shown
1.7.17 17 Nov 2026 Not shown
1.7.16 12 Nov 2026 Not shown

No rules fired in 1.7.20

Findings

Findings for v1.7.20. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.7.20; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@clipboard-health/usa-states

Canonical US state and territory list, StateCode and StateName types, and name/code normalizers.

Table of contents

  • Install
  • Usage
  • State timezones
    • Ordered choices and geographic exceptions
  • Local development commands

Install

npm install @clipboard-health/usa-states

Usage

import {
  isStateCode,
  type StateCode,
  type StateName,
  toStateCode,
  toStateCodeSet,
  toStateName,
  US_STATES,
} from "@clipboard-health/usa-states";

US_STATES.find((state) => state.code === "CA");
// => { name: "California", code: "CA" }

function parseStateCode(value: string): StateCode | undefined {
  return isStateCode(value) ? value : undefined;
}

// Normalize a state name or code (case- and whitespace-insensitive) to a `StateCode`.
toStateCode({ value: "  california " });
// => "CA"
toStateCode({ value: "Atlantis" });
// => undefined

// Normalize a list of names or codes to a `Set<StateCode>`, dropping unknown values.
toStateCodeSet({ values: ["California", "ny", "Atlantis"] });
// => Set { "CA", "NY" }

// Normalize a state name or code (case- and whitespace-insensitive) to a canonical `StateName`.
toStateName({ value: "  california " });
// => "California"
toStateName({ value: "ca" });
// => "California"
toStateName({ value: "Atlantis" });
// => undefined

interface LabelInput {
  name: StateName;
}

function toLabel(input: LabelInput): string {
  const { name } = input;

  return `State: ${name}`;
}

Prefer storing StateCode and resolving to StateName only for display; codes are the stable representation to compare across services. Both normalizers return undefined for unrecognized input — treat that as a validation failure rather than falling back to the raw value, otherwise unnormalized input reaches storage.

State timezones

STATE_TIME_ZONES provides a frozen, nonempty list of representative IANA timezone names for each supported StateCode. getStateTimeZones normalizes a state using toStateCode and returns the complete ordered array. Callers decide which entry to use. Existing state names/codes and US_STATES objects are unchanged.

import { getStateTimeZones, STATE_TIME_ZONES } from "@clipboard-health/usa-states";

STATE_TIME_ZONES.WA;
// => ["America/Los_Angeles"]
STATE_TIME_ZONES.TN;
// => ["America/New_York", "America/Chicago"]

getStateTimeZones({ state: "  tennessee " });
// => ["America/New_York", "America/Chicago"]

getStateTimeZones({ state: "Any" });
// => []
getStateTimeZones({});
// => []

The helper accepts state?: string and returns a frozen readonly string[] directly. An omitted, blank, Any, or unrecognized state returns a frozen empty array. With exactOptionalPropertyTypes, callers should omit state when the source value is nullish instead of explicitly passing null or undefined. This package supplies timezone metadata; consumers handle selection, formatting, and conversion with an explicit timezone.

Ordered choices and geographic exceptions

The first entry prefers the timezone whose local calendar day ends earliest in UTC under current timezone rules. The ordering is fixed; zones can tie, and historical ordering can differ. Arizona's entries tie during standard time. The order expresses this preference rather than population or capital-city coverage. Use the documented order and IANA rules instead of sorting by today's UTC offset or substituting fixed PST/EST offsets.

The lists represent current standard-time/DST regimes, rather than every historical IANA location or alias. Consult date-specific timezone rules when historical ordering matters.

The 14 states spanning federal standard-time zones, plus Arizona's separate DST case, are:

State Preferred IANA zone Other representative zone Geographic basis
Alaska America/Anchorage America/Adak Alaska and western Aleutians
Arizona America/Denver America/Phoenix Navajo DST observance and most of Arizona without DST
Florida America/New_York America/Chicago Eastern and western Panhandle
Idaho America/Boise America/Los_Angeles Southern Mountain and northern Pacific
Indiana America/Indiana/Indianapolis America/Chicago Eastern and Central counties
Kansas America/Chicago America/Denver Central and western Mountain counties
Kentucky America/New_York America/Chicago Eastern and Central areas
Michigan America/Detroit America/Menominee Eastern and western Upper Peninsula
Nebraska America/Chicago America/Denver Central and western Mountain areas
Nevada America/Denver America/Los_Angeles West Wendover's Mountain exception and Pacific remainder
North Dakota America/Chicago America/Denver Central and southwestern Mountain areas
Oregon America/Boise America/Los_Angeles Mountain portion of Malheur County and Pacific remainder
South Dakota America/Chicago America/Denver Central and western Mountain areas
Tennessee America/New_York America/Chicago Eastern and Central areas
Texas America/Chicago America/Denver Central and far-west Mountain areas

All eight non-state entries in the existing list are included. Micronesia uses ["Pacific/Pohnpei", "Pacific/Chuuk"]: Pohnpei represents the earlier UTC+11 group (including Kosrae under current rules), while Chuuk represents the UTC+10 group (including Yap). The Marshall Islands use Pacific/Majuro for their current UTC+12 regime, including Kwajalein. These representative choices do not reconstruct the islands' differing historical rules. The existing supported list also includes the freely associated states; this metadata does not redefine their political status.

Geography and timezone identifiers reviewed September 24, 2026:

Local development commands

See package.json scripts for a list of commands.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @clipboard-health/usa-states

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229