Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zip-to-timezone

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zip-to-timezone

``` Updated list of US zipcodes from trusted source (2020). ``` ## Installation ``` npm install --save zipcode-to-timezone ``` ## Import ``` const zipToTz = require('zip-to-timezone'); ``` ## Usage ``` try {

  • 1.0.36
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by4.3%
Maintainers
1
Weekly downloads
 
Created
Source

zipToTz

Description

  Updated list of US zipcodes from trusted source (2020).

Installation

  npm install --save zipcode-to-timezone

Import

  const zipToTz = require('zip-to-timezone');

Usage

  try {
  
    const tz = zipToTz.full('33487'); // America/New_York
  
    const tz = zipToTz.short('33487'); // EDT 
  
  } catch(error) {
    
  }

Error Messages

   1. "Invalid format or zipCode length" // Zipcode must be length 5.

   2. "Not found" 

Keywords

FAQs

Package last updated on 19 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc