No description
Find a file
2022-09-19 17:14:32 +02:00
.gitignore upate readme; bump patch; remove sorting; remove output and input files 2022-09-19 16:30:59 +02:00
index.js shebang for unix 2022-09-19 17:06:01 +02:00
package-lock.json 0.1.1 2022-09-19 17:14:32 +02:00
package.json 0.1.1 2022-09-19 17:14:32 +02:00
README.md update readme 2022-09-19 17:14:27 +02:00

Generate Timezone JSON

Installation

npm i generate-timezone-json

Usage

  1. Run: npx generate-timezone-json to generate timezones.json from official IANA Database,
    • this will generate a file named "timezones.json" with data coming from the official IANA database
  2. Run: npx generate-timezone-json <filename> to generate timezones.json from a TAB file,
    • for example, using a file named "zone.tab": generate-timezone-json zone.tab

Gotchas

  1. Note that the structure of the generated JSON file will be different depending on the source (i.e, zone.tab or the IANA timezones database)

Planned features (not yet implemented)

  1. Specify an output directory with option --outDir: generate-timezone <filename> --outDir <directory>