tzdata-factory 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+
2
+ The MIT License (MIT)
3
+ [OSI Approved License]
4
+ The MIT License (MIT)
5
+
6
+ Copyright (c) 2016 Rogier Schouten <https://github.com/rogierschouten>
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+
2
+ ## Synopsis
3
+
4
+ This is (a portion of) the [IANA TZ database](https://www.iana.org/time-zones), represented as JSON. Use this module in combination with [timezonecomplete](https://www.npmjs.com/package/timezonecomplete).
5
+ It is part of a set of similar modules:
6
+ * tzdata
7
+ * tzdata-africa
8
+ * tzdata-antarctica
9
+ * tzdata-asia
10
+ * tzdata-australasia
11
+ * tzdata-backward
12
+ * tzdata-etcetera
13
+ * tzdata-europe
14
+ * tzdata-factory
15
+ * tzdata-northamerica
16
+ * tzdata-southamerica
17
+ * tzdata-backward-utc
18
+
19
+ This module contains all zones of IANA TZ database file 'factory'.
20
+
21
+
22
+
23
+ ## TZ Database Version
24
+
25
+ 2021b
26
+
27
+ ## Use
28
+
29
+ In Node.JS, to get at the JSON data, simply do:
30
+
31
+ ```javascript
32
+ var jsonData = require('tzdata-factory');
33
+ ```
34
+
35
+ In a browser, use the bundled UMD module provided in tzdata-factory.js.
36
+
37
+ ```
38
+ <!DOCTYPE html>
39
+ <html>
40
+ <head>
41
+ <meta charset="utf-8">
42
+ <title>tzdata-factory example</title>
43
+ <script src="./tzdata-factory.js"></script>
44
+ <script>
45
+ function onLoad() {
46
+ var data = tzdataFactory;
47
+ }
48
+ </script>
49
+ </head>
50
+ <body onLoad="onLoad()">
51
+ </body>
52
+ </html>
53
+ ```
54
+
55
+ ## License
56
+
57
+ MIT
58
+
59
+ ## Zones in This Module
60
+
61
+ Factory
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "tzdata-factory",
3
+ "version": "1.0.26",
4
+ "description": "(Part of) the IANA time zone database as a JSON file",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/rogierschouten/tzdata-generate"
8
+ },
9
+ "main": "timezone-data.json",
10
+ "author": "Rogier Schouten <https://github.com/rogierschouten>",
11
+ "license": "MIT"
12
+ }
@@ -0,0 +1 @@
1
+ {"zones":{"Factory":[["0","-","-00",null]]},"rules":{},"version":"2021b"}
@@ -0,0 +1,4 @@
1
+ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.tzdataFactory = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"timezonecomplete":[function(require,module,exports){
2
+ module.exports={"zones":{"Factory":[["0","-","-00",null]]},"rules":{},"version":"2021b"}
3
+ },{}]},{},[])("timezonecomplete")
4
+ });