zonetab
v1.0.2
Published
Node module that fetches the zone.tab file and formats it as JSON.
Downloads
4
Readme
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,
// },
// ...
// }
})