Gathering detailed insights and metrics for @sytexa/tzdb-revised
Gathering detailed insights and metrics for @sytexa/tzdb-revised
npm install @sytexa/tzdb-revised
Typescript
Module System
Node Version
NPM Version
72.9
Supply Chain
89.6
Quality
76.5
Maintenance
100
Vulnerability
100
License
Total Downloads
1,186
Last Day
2
Last Week
9
Last Month
25
Last Year
223
Minified
Minified + Gzipped
Latest Version
1.6.0
Package Id
@sytexa/tzdb-revised@1.6.0
Unpacked Size
139.48 kB
Size
27.63 kB
File Count
12
NPM Version
6.14.16
Node Version
18.20.4
Publised On
06 Sept 2024
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
350%
9
Compared to previous week
Last month
150%
25
Compared to previous month
Last year
-47.5%
223
Compared to previous year
This package slightly extends / modifies @vvo/tzdb for our specific use case.
You probably want the original version by VVO:
All credit to the original author VVO
Deprecated time zone names are moved to their own key in the time zone object, instead of grouping them with group
:
1{ 2 name: "America/New_York", 3 alternativeName: "Eastern Time", 4 group: [ 5 "America/Detroit", 6 "America/Indiana/Indianapolis", 7 "America/Indiana/Marengo", 8 "America/Indiana/Petersburg", 9 "America/Indiana/Vevay", 10 "America/Indiana/Vincennes", 11 "America/Indiana/Winamac", 12 "America/Kentucky/Louisville", 13 "America/Kentucky/Monticello", 14 "America/New_York" 15 ], 16 deprecatedNames: [ 17 "US/Michigan", 18 "America/Fort_Wayne", 19 "America/Indianapolis", 20 "US/East-Indiana", 21 "America/Louisville", 22 "US/Eastern" 23 ], 24 continentCode: "NA", 25 continentName: "North America", 26 countryName: "United States", 27 countryCode: "US", 28 mainCities: ["New York City", "Brooklyn", "Queens", "Philadelphia"], 29 rawOffsetInMinutes: -300, 30 abbreviation: "EST", 31 rawFormat: "-05:00 Eastern Time - New York City, Brooklyn, Queens, Philadelphia" 32}
Useful if you don't want or need to support the deprecated time zones...
getUngroupedTimeZones()
This package also adds the getUngroupedTimeZones()
function, which returns an array of simplified time zone objects with current time information. We prefer this for creating time zone selection boxes when deprecated time zones are not required.
1[ 2 // ... 3 { 4 name: "America/Los_Angeles", 5 currentTimeOffsetInMinutes: -420, // "current" time zone offset, this is why getUngroupedTimeZones() is a method and not just an object: it works at runtime 6 currentTimeFormat: "(UTC -7) America/Los Angeles", 7 }, 8 // ... 9];
No vulnerabilities found.
No security vulnerabilities found.