zonetab

1.0.2 • Public • Published

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,
  //   },
  //   ...
  // }
})

Readme

Keywords

none

Package Sidebar

Install

npm i zonetab

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.48 kB

Total Files

5

Last publish

Collaborators

  • mikfoo
  • miafoo