Skip to content

miafoo/zonetab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zonetab

Description

Fetches the zone.tab file from https://data.iana.org/time-zones/tzdb/zone.tab and returns a promise with a formatted timezone object.

Installation

$ npm install zonetab

Usage

CLI

$ zonetab -f > zonetab.json

Node

const getZonetab = require('zonetab')

getZonetab().then(zonetabMap => {
  // zonetabMap output:
  // {
  //   ...
  //   "Europe/Copenhagen": {
  //     "code": "DK",
  //     "coordinates": "+5540+01235",
  //     "comments": null,
  //   },
  //   ...
  // }
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published