https://github.com/miafoo/zonetab
https://github.com/miafoo/zonetab
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/miafoo/zonetab
- Owner: miafoo
- License: mit
- Created: 2020-03-05T10:23:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T18:49:24.000Z (about 4 years ago)
- Last Synced: 2025-03-04T21:02:04.367Z (about 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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,
// },
// ...
// }
})
```