npm.io
1.0.4 • Published 3 years ago

timezone-enum

Licence
MIT
Version
1.0.4
Deps
0
Size
103 kB
Vulns
0
Weekly
0
Stars
10

NPM version NPM downloads MIT License

timezone-enum

Lightweight timezone enum for JavaScript or TypeScript.

Installing

Package manager

Using npm:

npm install timezone-enum

Using

Once the package is installed, use the default import like so:

import Timezone from 'timezone-enum';

And then you can do this anywhere in the module and expect intellisense to work as you're typing:

const currentTimezone = Timezone['US/Pacific'];

Keywords