timezone-abbreviations
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "timezone-abbreviations", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -18,4 +18,10 @@ # Timezone Abbreviations | ||
"timezone", | ||
timezones.filter((item) => item.abbr === "AEST") | ||
...timezones.filter((item) => item.abbr === "AEST") | ||
); | ||
// output: { | ||
// abbr: 'AEST', | ||
// description: 'Australian Eastern Standard Time', | ||
// offset: 'UTC+10' | ||
// } | ||
``` | ||
@@ -22,0 +28,0 @@ |
@@ -1,2 +0,3 @@ | ||
import * as timezones from "./data.json"; | ||
import timezones from "./data.json"; | ||
interface TimeZone { | ||
@@ -7,2 +8,3 @@ abbr: string; | ||
} | ||
export default timezones as TimeZone[]; |
@@ -1,3 +0,5 @@ | ||
import program from "./index"; | ||
import timezones from "./index"; | ||
console.log("program", program); | ||
console.log("timezones", timezones); | ||
console.log("timezones", ...timezones.filter((item) => item.abbr === "AEST")); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42070
1202
31