An open API service indexing awesome lists of open source software.

https://github.com/miafoo/zonetab


https://github.com/miafoo/zonetab

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

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
```bash
$ npm install zonetab
```

## Usage

### CLI
```bash
$ zonetab -f > zonetab.json
```

### Node
```javascript
const getZonetab = require('zonetab')

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