The `tzdata-etcetera` package provides a specific subset of the IANA Time Zone Database, focusing exclusively on the 'etcetera' zones such as Etc/GMT, Etc/UTC, and GMT. It delivers this data directly as a JSON file, intended for consumption by applications that require up-to-date time zone definitions without needing the entire global dataset. As of version 1.0.48, it incorporates the IANA TZ database release 2026a. The package maintains a regular release cadence, typically updating shortly after new IANA TZ database releases, which occur several times a year to reflect changes in time zone rules globally. This modular approach allows developers to include only the necessary time zone data, minimizing bundle size, and it is often used in conjunction with libraries like `timezonecomplete` for time zone calculations. Its primary differentiator is its granular focus on a specific zone category and its direct JSON output.
npm install tzdata-etceteraVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the 'etcetera' time zone data in Node.js and access specific zone definitions.
Regularly update the package to ensure the most current time zone data. Be aware that past time calculations might produce different results with newer data.
Update application logic to no longer expect or handle a 'null' timezone entry. Verify any parsing or validation routines that might have relied on this specific entry.
Treat the imported value as a plain JavaScript object (from JSON). Access time zone data directly via property lookup, e.g., `tzdataEtcetera['Etc/GMT']`.
No dependency data recorded yet.