# country-timezone

> Find timezone based on country code or country name.

Latest version **1.0.8** (published 2019-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install country-timezone
pnpm add country-timezone
yarn add country-timezone
bun add country-timezone
```

## 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.8 |
| Published | 2019-06-10 |
| First published | 2018-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | mountainfirefly |
| Maintainers | amazingpankaj |
| Keywords | javascript, timezone, country, country, code |

## Links

- npm: https://www.npmjs.com/package/country-timezone
- Repository: https://github.com/mountainfirefly/country-timezone
- Homepage: https://github.com/mountainfirefly/country-timezone#readme
- Issues: https://github.com/mountainfirefly/country-timezone/issues
- npm.io page: https://npm.io/package/country-timezone

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2019-06-10
- 1.0.7 — 2019-06-08
- 1.0.6 — 2019-01-19
- 1.0.5 — 2019-01-13
- 1.0.4 — 2018-11-21
- 1.0.3 — 2018-11-21
- 1.0.2 — 2018-11-21
- 1.0.1 — 2018-11-21
- 1.0.0 — 2018-11-21

## README

# country-timezone
Find timezone with city name, country name and country code

#### Install
```
npm install country-timezone --save
```
OR install with yarn
```
yarn add country-timezone
```

#### Get time with city name, country name and country code
```
import countryTimezone from 'country-timezone';

const timezonesWithCountryName = countryTimezone.getTimezones('India');
const timezonesWithCityName = countryTimezone.getTimezones('New Delhi');
const timezonesWithCode = countryTimezone.getTimezonesWithCountryCode('IN');

console.log(timezonesWithCountryName, timezonesWithCityName, timezonesWithCode, );
// [ 'Asia/Kolkata' ] [ 'Asia/Kolkata' ] [ 'Asia/Kolkata' ]
```

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