zip2tz

A zipcode to timezone library

  • zip2tz

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
zip2tz
1.0.8a year agoa year agoMinified + gzip package size for zip2tz in KB

Readme

zip2tz
Simple library for converting a zipcode to a timezone string.

Installation

node 14+ supported.

Yarn

yarn add zip2tz

NPM

npm install --save zip2tz

Usage

const { lookup } = require('zip2tz');

const tz = lookup('94110');
console.log(tz); // America/Los_Angeles

Supported Time Zones

  • America/Adak
  • America/Anchorage
  • America/Boise
  • America/Chicago
  • America/Denver
  • America/Detroit
  • America/Indiana/Indianapolis
  • America/Indiana/Knox
  • America/Indiana/Marengo
  • America/Indiana/Petersburg
  • America/Indiana/TellCity
  • America/Indiana/Vevay
  • America/Indiana/Vincennes
  • America/Indiana/Winamac
  • America/Juneau
  • America/Kentucky/Louisville
  • America/Kentucky/Monticello
  • America/LosAngeles
  • America/Menominee
  • America/Metlakatla
  • America/NewYork
  • America/Nome
  • America/NorthDakota/Beulah
  • America/NorthDakota/Center
  • America/NorthDakota/NewSalem
  • America/Phoenix
  • America/PuertoRico
  • America/Sitka
  • America/StThomas
  • America/Yakutat
  • Pacific/Chuuk
  • Pacific/Guam
  • Pacific/Honolulu
  • Pacific/Kosrae
  • Pacific/Kwajalein
  • Pacific/Majuro
  • Pacific/PagoPago
  • Pacific/Palau
  • Pacific/Pohnpei
  • Pacific/Saipan
  • Pacific/Wake

Credit

This project uses data from the Ziptz project.