Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

zipcode-to-timezone

DoubleDor204.9kMIT0.0.9TypeScript support: definitely-typed

Converts a timezone to a zipcode

timezone, zipcode, convert

readme

zipcode-to-timezone

Installation

npm install --save zipcode-to-timezone

Usage

var zipcode_to_timezone = require( 'zipcode-to-timezone' );

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

Other info

This project uses the timezone list found here:

https://sourceforge.net/projects/zip2timezone/files/