{"_id":"@mapbox/timespace","_rev":"4664238","name":"@mapbox/timespace","description":"compute fuzzy local time from a location","dist-tags":{"latest":"2.0.4"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"time":{"modified":"2026-04-10T22:29:34.000Z","created":"2016-12-02T20:42:03.048Z","2.0.4":"2017-09-07T21:34:12.263Z","2.0.3":"2017-09-07T21:09:35.852Z","2.0.2":"2017-09-07T18:52:26.769Z","2.0.1":"2017-06-27T21:16:40.961Z","2.0.0":"2017-05-18T18:01:19.334Z","1.1.0":"2016-12-02T20:42:03.048Z"},"users":{},"author":{"name":"morganherlocker"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"versions":{"2.0.4":{"name":"@mapbox/timespace","version":"2.0.4","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"@mapbox/tilebelt":"^1.0.1","@mapbox/tile-cover":"^3.0.2","d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","simple-statistics":"^2.3.0","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","turf":"^2.0.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"regenerate/regenerate-timezones.sh"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"4cc63b858949c39b9ba0f8136d95d9a20998994e","_id":"@mapbox/timespace@2.0.4","_shasum":"cae8dc13fa22ede858167e4be22f5167a24c013f","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"tcql","email":"tim.channell@gmail.com"},"dist":{"shasum":"cae8dc13fa22ede858167e4be22f5167a24c013f","size":64103,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-2.0.4.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timespace-2.0.4.tgz_1504820051064_0.32058108993805945"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:45.862Z","publish_time":1504820052263,"_cnpm_publish_time":1504820052263},"2.0.3":{"name":"@mapbox/timespace","version":"2.0.3","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"@mapbox/tilebelt":"^1.0.1","@mapbox/tile-cover":"^3.0.2","d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","simple-statistics":"^2.3.0","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","turf":"^2.0.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"regenerate/regenerate-timezones.sh"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"dc94bc2f7a3f2511ddb6b87fd3f5d2a79ac779bd","_id":"@mapbox/timespace@2.0.3","_shasum":"9d925a2ed64d3c1f8f4dc1df324b5b196f712b88","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"tcql","email":"tim.channell@gmail.com"},"dist":{"shasum":"9d925a2ed64d3c1f8f4dc1df324b5b196f712b88","size":5728,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-2.0.3.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timespace-2.0.3.tgz_1504818574037_0.31539992801845074"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:45.015Z","publish_time":1504818575852,"_cnpm_publish_time":1504818575852},"2.0.2":{"name":"@mapbox/timespace","version":"2.0.2","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"@mapbox/tilebelt":"^1.0.1","@mapbox/tile-cover":"^3.0.2","d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","simple-statistics":"^2.3.0","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","turf":"^2.0.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"regenerate/regenerate-timezones.sh"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"a7921efc5dea133a0950ec5c8fce4f123f956959","_id":"@mapbox/timespace@2.0.2","_shasum":"58bb12a14cd714a365fe72ac1892e43f54a6707c","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"lily-chai","email":"lily@mapbox.com"},"dist":{"shasum":"58bb12a14cd714a365fe72ac1892e43f54a6707c","size":77898115,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-2.0.2.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timespace-2.0.2.tgz_1504810344339_0.1663697080221027"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:41.633Z","publish_time":1504810346769,"_cnpm_publish_time":1504810346769},"2.0.1":{"name":"@mapbox/timespace","version":"2.0.1","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"@mapbox/tilebelt":"^1.0.1","d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","simple-statistics":"^2.3.0","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","turf":"^2.0.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"regenerate/regenerate-timezones.sh"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"92b29c5a8ecb3f763423cdfd36e40420840e07c4","_id":"@mapbox/timespace@2.0.1","_shasum":"78d90115373c20c3d9fe9bbc4bcac407b89a0651","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"benjamintd","email":"benjamin@mapbox.com"},"dist":{"shasum":"78d90115373c20c3d9fe9bbc4bcac407b89a0651","size":64919,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-2.0.1.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timespace-2.0.1.tgz_1498598200801_0.17426000419072807"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:31.104Z","publish_time":1498598200961,"_cnpm_publish_time":1498598200961},"2.0.0":{"name":"@mapbox/timespace","version":"2.0.0","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","simple-statistics":"^2.3.0","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","tilebelt":"^1.0.1","turf":"^2.0.2","turf-intersect":"^1.4.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"regenerate/regenerate-timezones.sh"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"c090f7fa76077fe0949306213d0f9463bb35d930","_id":"@mapbox/timespace@2.0.0","_shasum":"18bb134547b533d086320c52e44855ab001ed357","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.3.2","_npmUser":{"name":"lily-chai","email":"lily@mapbox.com"},"dist":{"shasum":"18bb134547b533d086320c52e44855ab001ed357","size":64937,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-2.0.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timespace-2.0.0.tgz_1495130479058_0.4493162306025624"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:29.078Z","publish_time":1495130479334,"_cnpm_publish_time":1495130479334},"1.1.0":{"name":"@mapbox/timespace","version":"1.1.0","description":"compute fuzzy local time from a location","main":"index.js","dependencies":{"d3-queue":"^3.0.3","mkdirp":"^0.5.1","moment":"^2.12.0","moment-timezone":"^0.5.5","rimraf":"^2.5.4","tile-cover":"^3.0.1"},"devDependencies":{"eslint":"^2.5.1","eslint-config-mourner":"^2.0.0","tap":"^5.7.0","tilebelt":"^1.0.1","turf":"^2.0.2","turf-intersect":"^1.4.2"},"scripts":{"test":"npm run lint; tap -R spec test/*.test.js;","lint":"eslint *.js --fix","regenerate":"node lib/quantize.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/timespace.git"},"keywords":["localization","time","timezone","geo"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"homepage":"https://github.com/mapbox/timespace#readme","eslintConfig":{"extends":"mourner","rules":{"strict":"off","indent":[2,2],"camelcase":0,"space-before-function-paren":[2,"never"]}},"gitHead":"ae519c5a7667527d327e15b5e2c15818393622c1","_id":"@mapbox/timespace@1.1.0","_shasum":"9672a819372a6ca6f819b7062d35a7de19199df4","_from":".","_npmVersion":"4.0.2","_nodeVersion":"4.6.2","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"9672a819372a6ca6f819b7062d35a7de19199df4","size":50607,"noattachment":false,"key":"/@mapbox/timespace/-/@mapbox/timespace-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/timespace/download/@mapbox/timespace-1.1.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timespace-1.1.0.tgz_1480711320880_0.8782844552770257"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:45:27.092Z","publish_time":1480711323048,"_cnpm_publish_time":1480711323048}},"readme":"# timespace [![Build Status](https://travis-ci.org/mapbox/timespace.svg?branch=master)](https://travis-ci.org/mapbox/timespace)\nCompute fuzzy local time from a location. The default accuracy is [zoom level 8](http://wiki.openstreetmap.org/wiki/Zoom_levels). See [\"Regenerate timezones.json\"](https://github.com/mapbox/timespace#regenerate-timezonesjson) section for instructions on how to change accuracy.\n\nTimezone data is from https://github.com/evansiroky/timezone-boundary-builder/.\n\n## Install\n```\nnpm install @mapbox/timespace\n```\n\n## Test\n```\nnpm run test\n```\n\n## Use\n\n### Functions\n\n```js\nvar ts = require('@mapbox/timespace');\n\nvar timestamp = Date.now();\nvar point = [-122.27783203125, 37.84015683604136];\nvar time = ts.getFuzzyLocalTimeFromPoint(timestamp, point);\n//=> (a `moment-timezone` object – see https://momentjs.com/timezone/)\n\n\nvar tile = [41, 98, 8];     // the tile [x, y, z] whose timezone we want to know\nvar timezone1 = ts.getFuzzyTimezoneFromTile(tile);\n//=> 'America/Los_Angeles'\n\n\nvar quadkey = '02301021';   // the quadkey whose timezone we want to know\nvar timezone2 = ts.getFuzzyTimezoneFromQuadkey(quadkey);\n//=> 'America/Los_Angeles'\n```\n\n`./lib/timezones.json` file contains the timezone name of every z8 tile that contains land.\n\n\nIf a tile/quadkey with zoom levels > 8 is passed into timespace functions, the timezone of its z8 parent is returned.\n\nIf a tile/quadkey with zoom levels < 8 is passed into timespace functions, the most popular timezone amongst its z8 children is returned.\n\n\n## Regenerate timezones.json\n\nTo update timezone.json,\n1. find the link address of the latest timezones.shapefile.zip release from https://github.com/evansiroky/timezone-boundary-builder/releases,\n2. replace the link address in [this line](https://github.com/mapbox/timespace/blob/master/regenerate/regenerate-timezones.sh#L1) with the the link from step 1\n3. run `npm run regenerate`\n4. run `npm run test` to verify the new timezones.json file is ok\n\n\nTo generate timezone.json for another zoom level:\n1. change [the number in this line](https://github.com/mapbox/timespace/blob/master/regenerate/regenerate-timezones.sh#L8) to the desired zoom level,\n2. run `npm run regenerate`\n3. run `npm run test` to verify the new timezones.json file is ok\n\n","_attachments":{},"homepage":"https://github.com/mapbox/timespace#readme","bugs":{"url":"https://github.com/mapbox/timespace/issues"},"license":"MIT"}