# get-zonetab

> Get the latest zone.tab file form IANA time zone database

Latest version **1.0.0** (published 2016-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-zonetab
pnpm add get-zonetab
yarn add get-zonetab
bun add get-zonetab
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-06 |
| First published | 2016-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | request, get, fetch, extract, latest, tz, time, zone, zones, timezone, timezones, list, data, database, iana, code, country, country-code, coordinate, coordinates, id, identifier, identifiers |

## Links

- npm: https://www.npmjs.com/package/get-zonetab
- Repository: https://github.com/shinnn/get-zonetab
- Homepage: https://github.com/shinnn/get-zonetab#readme
- Issues: https://github.com/shinnn/get-zonetab/issues
- npm.io page: https://npm.io/package/get-zonetab

## Dependencies (2)

- [fettuccine](https://npm.io/package/fettuccine.md) ^1.0.2
- [decompress-targz](https://npm.io/package/decompress-targz.md) ^4.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-06
- 2.0.0-3 (next) — 2018-11-28
- 2.0.0-2 — 2018-09-28
- 2.0.0-1 — 2018-09-28
- 2.0.0-0 — 2018-09-28
- 0.0.0 — 2016-06-06

## README

# get-zonetab

[![NPM version](https://img.shields.io/npm/v/get-zonetab.svg)](https://www.npmjs.com/package/get-zonetab)
[![Build Status](https://travis-ci.org/shinnn/get-zonetab.svg?branch=master)](https://travis-ci.org/shinnn/get-zonetab)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/get-zonetab.svg)](https://coveralls.io/github/shinnn/is-gist-starred?branch=master)
[![Dependency Status](https://david-dm.org/shinnn/get-zonetab.svg)](https://david-dm.org/shinnn/get-zonetab)
[![devDependency Status](https://david-dm.org/shinnn/get-zonetab/dev-status.svg)](https://david-dm.org/shinnn/get-zonetab#info=devDependencies)

A [Node](https://nodejs.org/) module to get the latest [`zone.tab`](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) file form [IANA Time Zone Database](https://www.iana.org/time-zones)

```javascript
const getZonetab = require('get-zonetab');

getZonetab().then(string => {
  string; //=> '# tz zone descriptions (deprecated version)\n ...'
});
```

## Installation

[Use npm.](https://docs.npmjs.com/cli/install)

```
npm install get-zonetab
```

## API

```javascript
const getZonetab = require('get-zonetab');
```

### getZonetab([*options*])

*options*: `Object`  
Return: [`Promise`](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-constructor) instance

It gets and extracts `zone.tab` file form <https://www.iana.org/time-zones> and returns a promise for a string of file contents.

#### Options

All options except for `encoding` will be directly used as [`Request` options](https://github.com/request/request#requestoptions-callback).

##### options.encoding

Type: `String` or `null`  
Default: `utf8`

Determine the encoding of the stirng or get a [`Buffer`](https://nodejs.org/api/buffer.html#buffer_buffer) instead if this option is `null`.

```javascript
getZonetab({encoding: null}).then(buffer => {
  buffer; //=> <Buffer 23 20 74 7a 20 7a 6f 6e 65 20 64 65 73 63 72 ... >
});
```

## License

Copyright (c) 2016 [Shinnosuke Watanabe](https://github.com/shinnn)

Licensed under [the MIT License](./LICENSE).

---
_Source: https://npm.io/package/get-zonetab · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
