{"_id":"@bigemap/mbtiles","_rev":"12-231b6646c06ee2e8fab0a0b1a1245faa","time":{"0.11.0":"2019-12-05T07:39:55.250Z","created":"2019-12-05T07:41:17.400Z","0.11.1":"2019-12-05T07:41:17.739Z","modified":"2022-08-01T07:30:47.018Z","0.11.2":"2019-12-05T07:56:13.179Z","0.12.1":"2020-07-22T03:25:24.797Z","0.12.2":"2020-07-22T07:29:50.408Z","0.12.3":"2022-04-01T08:35:10.767Z","0.12.4":"2022-04-01T08:57:04.819Z","0.12.5":"2022-08-01T07:30:46.933Z"},"name":"@bigemap/mbtiles","dist-tags":{"latest":"0.12.5"},"versions":{"0.11.1":{"name":"@bigemap/mbtiles","version":"0.11.1","description":"Utilities and tilelive integration for the MBTiles format.","url":"http://github.com/bigemap/node-mbtiles","author":{"name":"Mapbox","url":"https://www.mapbox.com"},"keywords":["map","mbtiles"],"licenses":[{"type":"BSD"}],"main":"./lib/mbtiles","repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"dependencies":{"@mapbox/sphericalmercator":"~1.1.0","@mapbox/tiletype":"0.3.x","d3-queue":"~3.0.7","sqlite3":"4.x"},"devDependencies":{"eslint":"~5.16.0","eslint-config-unstyled":"^1.1.0","tape":"~4.10.1"},"engines":{"node":">= 6"},"scripts":{"test":"eslint lib && tape test/*.js"},"gitHead":"6bf0f9e09f609447ee942fac54144ae9b8a2b4a6","bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"homepage":"https://github.com/bigemap/node-mbtiles#readme","_id":"@bigemap/mbtiles@0.11.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"charlyq","email":"charlyqiu@gmail.com"},"dist":{"integrity":"sha512-ctMWqmmmbHIBv2SZfdA4Hb9FyZXv9rjCbKdfj1QGr39YCH7cmeNdQeLxzkzE6fqt6jt/LwMdM1R0Zjk9m2Wjqw==","shasum":"f5c656682dcc6232bea079844c6e999cd3f08a8e","tarball":"https://registry.npmjs.org/@bigemap/mbtiles/-/mbtiles-0.11.1.tgz","fileCount":11,"unpackedSize":110134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6LSeCRA9TVsSAnZWagAArJsP/0Saf+2GREGteCztTy01\nzUGBM/F9GjjOa19z/wdu9g+N9TtVqepinR+6jHdv6bQouOLDEGEiU9os8NWK\npmCzI8JdoIXRt8625wS5qwup75ypS2mOiUqAKKQD0AEk0zkajQV/tn94JWKA\nuNOEehVzdchKAg2wsuLFJBu4kAQmGhhs16naUJIzQRXdQzrMrBqBHqZ3B7wa\nbZgDnxX95Q0Klom8WS4ky8Zvh5zqRp2xdL619l3ojYx9UZ2dgXOBm9HxFsrL\ni2D2BxCHFk8ucAnP9qOFtfK4LfzybY1SLqSDS88ZxviIqA4PnxnpZE9MTLeo\ng7Dcr98u045jJvCbId0qsqpzgmAznaAuzADNfCnzdV6zKJLNkeLN8KQz9LRg\nJPLza33Y7FOugWUqGDM+6pGeX1iCAlfWbK/2MBNr1K/cxI/Y7rGTihwRfJZ5\nYiWjxfU7zQnzDZYqXu5mzgwoI5i8WES0rrO+6iWrQ0mTIgDdyDPqoePi9rae\n6X8brT19Hz6YE7fySgXk4YYf5+q327ITE0/XJyXX01y+YD0ENk+phZNuYhff\n/d9Li7E+ot/P5cYdKfFyL0ZAOrR+Le2H3D1H3bjZqDb4s1yeRyh/x9f1wBcv\nO9ojhTSvZnHrw2PYHkwq3Ugo5OXdUrs9mBtCEozRLivmY19JjXW7XJHLjiS7\nAFs5\r\n=zE1J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApvc75FKgUY7ARwwSZrZgw2XclDYnzpo/JQY837hAJqAiEA7IVEQ78cGZ21wqBVIAny/1ZCj50JIBudjsVih6tXZFo="}]},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mbtiles_0.11.1_1575531677585_0.3864275069788563"},"_hasShrinkwrap":false},"0.11.2":{"name":"@bigemap/mbtiles","version":"0.11.2","description":"Utilities and tilelive integration for the MBTiles format.","url":"http://github.com/bigemap/node-mbtiles","author":{"name":"Mapbox","url":"https://www.mapbox.com"},"keywords":["map","mbtiles"],"licenses":[{"type":"BSD"}],"main":"./lib/mbtiles","repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"dependencies":{"@mapbox/sphericalmercator":"~1.1.0","@mapbox/tiletype":"0.3.x","d3-queue":"~3.0.7","sqlite3":"4.x"},"devDependencies":{"eslint":"~5.16.0","eslint-config-unstyled":"^1.1.0","tape":"~4.10.1"},"engines":{"node":">= 6"},"scripts":{"test":"eslint lib && tape test/*.js"},"gitHead":"117c6c3f5bf61e0554b564428af84e2b4f57b4b9","bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"homepage":"https://github.com/bigemap/node-mbtiles#readme","_id":"@bigemap/mbtiles@0.11.2","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"charlyq","email":"charlyqiu@gmail.com"},"dist":{"integrity":"sha512-LoNrLlStPYKsZA+L/GXb0WQDX5Za4jGdnEdKh3wjTAXiW+00JkPcP/sS1EZ4Yob+pccD4CKZlbtk3ApER86uOQ==","shasum":"7c94a20e0345786ef987f86b0be99c1653332477","tarball":"https://registry.npmjs.org/@bigemap/mbtiles/-/mbtiles-0.11.2.tgz","fileCount":11,"unpackedSize":110133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6LgdCRA9TVsSAnZWagAAdzIQAInREyM+Qx3fdk5ycSmH\n8qNOSjKgr9aXjMxbjhT/d7rjGZSFu6qOHlAiQc21L7gVxupkpgDL3B664ugE\nnGq8/Q8QKqv3YCwxAKpcgoi7BfKDzkEuVNWPkCyAlluPnxxz/mRqA1ndYMpv\nctbu9JOtbe+a+jF/FUUKzJBJCwRoxD/l0zxErm3VN3SviGi3WOTkI4ZbYGCc\nYe53NjkDKBMAU4suXgjcWwkmKqFHzOIhZzVcEBD3MoNxEYdFUxrsklrLk0rv\nWt0epf7zV5lWEdT9FK2nsb2qAbg8uT3hU8+sf5zN/a/9nvUTCJEA0W/SS2PZ\nGYU34qtJ1jP/zNpdBiJpjBsI/LzOVmtjIVKbb6WfsSJEXUCqbCdEL1fsBUWp\nZc1oJB+EViXmjtrhTu1CGuceEMXMQYfXFIRXFx+Aw7sH+ieA1Jy0DOvmQgzN\nl/yIxKw5VdFSy8RJjFMXIv6vc8ocUWfZxRHaLQhu+Ka9dH7Oi4as2cekK01p\nraYIYlEhH87aM/1mYoyXeKmTnWVizFw1zdc6F0KWf9qyrGvwBrj+9cgd77fd\nowQe0d8CJaIUz4hO6Pw/vjX8lApn2+PqQTvmTWJPcec1Z3sEbIEBYBymCqfw\nV8L1wP/6SsHlWyIjwFzUhT+xek7O+J83cZtRkC92rfd226XXs6Hrq1whmIoR\nCg3W\r\n=ItFE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc46U/PjIfRXYiDPW0mrkd8GS0tX7pNreq3zbNypJaDwIgCfWkxrSdUIPIeuZungdMRkfJwmoaud//PGr2IJD5X/U="}]},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mbtiles_0.11.2_1575532573040_0.1397660374441585"},"_hasShrinkwrap":false},"0.12.2":{"name":"@bigemap/mbtiles","version":"0.12.2","description":"Utilities and tilelive integration for the MBTiles format.","url":"http://github.com/bigemap/node-mbtiles","author":{"name":"Mapbox","url":"https://www.mapbox.com"},"keywords":["map","mbtiles"],"licenses":[{"type":"BSD"}],"main":"./lib/mbtiles","repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"dependencies":{"@mapbox/sphericalmercator":"~1.1.0","@mapbox/tiletype":"0.3.x","d3-queue":"~3.0.7","sqlite3":"^5.0.0"},"devDependencies":{"eslint":"~5.16.0","eslint-config-unstyled":"^1.1.0","tape":"~4.10.1"},"engines":{"node":">= 10"},"scripts":{"test":"eslint lib && tape test/*.js"},"gitHead":"c1c2b7748ae2607a023ee9ebf249be44483c330b","bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"homepage":"https://github.com/bigemap/node-mbtiles#readme","_id":"@bigemap/mbtiles@0.12.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RvqKXERaaGLv6gD/sN56ouh/bS3mKg7PBTya+0Z1d1msXpz62hSxWisovraR+iEp8w1CRXPSxoLR1AtpZF+a3Q==","shasum":"cf8df8080e66beb3aae24abcc7f84d6bef10fcf8","tarball":"https://registry.npmjs.org/@bigemap/mbtiles/-/mbtiles-0.12.2.tgz","fileCount":10,"unpackedSize":48796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF+ruCRA9TVsSAnZWagAA2WcP/1LLJWSo+BjQ/3EfV1Lk\n/VaMg9g3ZExjjHQTqZjoBkVu3a05X+MN91h2v15y2XKowG1QURjSvtxWHr3o\nzrbYmCnigePVz4uFHJ4MMdW+uK1wkhXb3UZxpU3qCNzwlVxcdXGWt/vAe1g7\nFbWk3JzIdRwC99u75qQnJ0Sk1H/Gg+OT6U0lim3itZPZY0pRDfMStJBLJYCb\nVfbb6vmmjvDg2sCzTPcAuZSTHfWGQl9cw7G2oS8ECZtXCRR9kKZKcIHh9/BA\nRiAYnnLjy71xijTnBC7qFOxoZ+4YNtcc+A4EB8suVnKqN2uTjR1rKGhaByA3\nKZmYYXo4nawO0Tn/7fzgsMYIAgYdUUTZZMu2fL2GVaT+UU9rrLiu4YvVJtKG\npReGj/0K/rCaw9URjX4LDkWhMZIOuet0QT4EsekTiUmwRGrd+J2wXPcwoHiz\nBt20Z1DGXttwQCKh4ERa5DSHbiWHo0Kk19ogWbL5/PDPbU3aUeD3LDFSNle8\nYpTRUm3YtjJobx3BZr81jg9olQKi83C+Hn4jsnHN8SU4/GE8NAQhddejBH0v\nXDKqvY5zmjp0cPaEfS24cJKyQIoEzg2gT2IrsyrEbtiZ+j19Y69xFIoP7dkT\n3jAdjj0Mgk/N2NjubxdHpKPSKD6noT5j7wVNLgyGNNGPFasaDWXfIKlw0lII\nhJ0e\r\n=11wq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqJ+RPbwHtPzbRXAg4suS0jXVw+erALozb2AuzMqLgjQIhAPlf+Y+wcluH6Exwr4nuaB/CswAa9QiwFgYLZYceCErh"}]},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"_npmUser":{"name":"charlyq","email":"charlyqiu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mbtiles_0.12.2_1595402990285_0.23736282627502114"},"_hasShrinkwrap":false},"0.12.4":{"name":"@bigemap/mbtiles","version":"0.12.4","description":"Utilities and tilelive integration for the MBTiles format.","url":"http://github.com/bigemap/node-mbtiles","author":{"name":"Mapbox","url":"https://www.mapbox.com"},"keywords":["map","mbtiles"],"licenses":[{"type":"BSD"}],"main":"./lib/mbtiles","repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"dependencies":{"@mapbox/sphericalmercator":"~1.1.0","@mapbox/tiletype":"0.3.x","d3-queue":"~3.0.7","sqlite3":"^5.0.0"},"devDependencies":{"eslint":"~5.16.0","eslint-config-unstyled":"^1.1.0","tape":"~4.10.1"},"engines":{"node":">= 10"},"scripts":{"test":"eslint lib && tape test/*.js"},"gitHead":"781a9f283deee1a0ec3f96cdb51c7b15a7d431b7","bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"homepage":"https://github.com/bigemap/node-mbtiles#readme","_id":"@bigemap/mbtiles@0.12.4","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BzFsnxJOE1YzIuejtGJFiOU7PpsoFdZOztRr1SUrmbUiP+kgPEJCefS4PGA9NiZOvB+oc1BhAjXmZv6NhkPaVQ==","shasum":"54b0ac13ad4a4d251ad1d66d08b80aefde7cf23a","tarball":"https://registry.npmjs.org/@bigemap/mbtiles/-/mbtiles-0.12.4.tgz","fileCount":10,"unpackedSize":49506,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwmlVWjJ+6X0U6JPNrI2YaaMdLt9t9MXe32p6NbA8MsAiEA4oOTy5fynC7yjBO+A7nNnoRuBTbFfGb/Op6fF0M39uQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRr5gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+LA//dADEEICQTVGBbjRyXjmY9j/cqWoswtGD6VG0VtL9wra67a9O\r\nPU1k7u7T+O8pE2yLhcBHQN+nOLrKf3MmF/neNEErGY6/SLPa/0yFKL1NQWWT\r\nRRkOIVhwCNnIXlQlp1pEszoCq07mZehGjjnOUpZxFNdIadAIbDoI45/80GwM\r\nwkisTf3K5F+WBZ5fRwERP1j7PUfaP6cxOiCRy1hXDrzuiY3g5BKzDtKdeT7v\r\nYqD/kBC2HJkz3xXy8qIWV9Blzo3cscgMbMc0PyNRAraL9ccBtiTwbI9jBMv8\r\nttJ+jRC0+jNgC9slucxWZgtk4S0J2vegfnlSKlLXHydacHz4uBOxhEIAP+ye\r\nYNqQSwwOtQWqk0vCxnQK4tq+ajl6YNtIXoZWpYG0jPQisHMDFQSN+4QJtyF3\r\nK2ht3ol+lp1+Ws28UWgoUIXahRydT6bCrqEr2hFydx1vYvd8LTaPzGW0X31+\r\njD1t70yMDx1vR/AhVyj6qMFrnuwuHuZKBR+1BtX8ksenBbpAWe7xczqPH8e2\r\n5KcP8zdpyu0AM4jgPuqhbsoSCsL7uuTUJNA2uKxMhJoh9PxzSwcJ11vUQpcs\r\nrdt3mPCTQBIjG1GCT+ATmVNWSZ+t87cks4/yd5MLNhAsMnr/VDiB249tu61z\r\nFzkaGXE6olu6xta5R9B+MMNqF9doLVVy6cc=\r\n=vnl6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"charlyq","email":"charlyqiu@gmail.com"},"directories":{},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mbtiles_0.12.4_1648803424715_0.9485166433302121"},"_hasShrinkwrap":false},"0.12.5":{"name":"@bigemap/mbtiles","version":"0.12.5","description":"Utilities and tilelive integration for the MBTiles format.","url":"http://github.com/bigemap/node-mbtiles","author":{"name":"Mapbox","url":"https://www.mapbox.com"},"keywords":["map","mbtiles"],"licenses":[{"type":"BSD"}],"main":"./lib/mbtiles","repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"dependencies":{"@mapbox/sphericalmercator":"~1.1.0","@mapbox/tiletype":"0.3.x","d3-queue":"~3.0.7","sqlite3":"^5.0.0"},"devDependencies":{"eslint":"~5.16.0","eslint-config-unstyled":"^1.1.0","tape":"~4.10.1"},"engines":{"node":">= 10"},"scripts":{"test":"eslint lib && tape test/*.js"},"gitHead":"416657bb9a611f13c182fec3b5c5ea682438e6ab","bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"homepage":"https://github.com/bigemap/node-mbtiles#readme","_id":"@bigemap/mbtiles@0.12.5","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-R6A72ekPGqGbZbL/CcZ9WZYGQpA7OzVe9pYhL4/QQ3NtinLh4WN5nnZDij0ZzoEl3MjjDczq91AHhwebHmTmnw==","shasum":"60a7ffc79ee9369208ab93f4db8b0036ea266ff1","tarball":"https://registry.npmjs.org/@bigemap/mbtiles/-/mbtiles-0.12.5.tgz","fileCount":10,"unpackedSize":50448,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDadvC1HS/WXMHA0EHjaR3UJ+UoxItfmIhXDUeSmwiOuQIhAI0U/Hb0BYL2LhzSuRx/ZEPnuK0VZOyDKVWFpfTwYTXf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi54EmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqauRAAjPfkgBCH7pUXm4bnW0WOz5Et6eY3/dzijB8TunhtHZ/GL7Ma\r\njYkvZnvAqh7pU1G7w5tUujHnPt1uufariD9w9BQ241omLSDh54dsIkdMToNp\r\nSqLDCinBKhHnzt9rG1MBiNWzaBQBWs0tVlX+uY5LjKGFzGoKm7Rn/2DhDJRZ\r\nYkoyClRa395VtmAJ09u7HObeVHqsmzXaTFcCX2eSzKkefAKzrSnAn2Iqt0wc\r\nkDacK8GWvu2XwfCnkHulwDuuEN0wed+TZjcOkHd9hboVHlZcgrYwWR/JYFEw\r\nzZ0nFs+XKecJLAdUCLFMHBIU/v1gtJKQt59KNcRK8/3e55uYItH6UUPnhxdo\r\nUaTpxhmbM4eVfjl3XqDcaVmtyaR3y8pKOKp4u823t3gzBp+w8wlqYiInOPN9\r\nTGK2c/G7RfKTsV77iPjks4Tpw4U6z54e2PdNdxcoio6QrU/CfjM1Acibwi/S\r\n5hzZsBKqYM8J71x68L5dZw5nKYvHlpj9iqszxA2Knhat2vH2c57OxN7yKKRe\r\n8SaohLSTHWW7+IM/7SY9JTf7maI7qVuY/qbwa94LxEucCSikBiU0rnE1NvnD\r\nmijFAptDyp5+Yd0d1TQmyuTAaCuIcyAfr0ePYsVsR8By1B3uiKWq1uVBIqwt\r\nyBKxpvH7na8fDKmg3wZBmOAgmsEccruTFpk=\r\n=vgVa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"charlyq","email":"charlyqiu@gmail.com"},"directories":{},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mbtiles_0.12.5_1659339046769_0.79558778175436"},"_hasShrinkwrap":false}},"maintainers":[{"name":"charlyq","email":"charlyqiu@gmail.com"}],"description":"Utilities and tilelive integration for the MBTiles format.","homepage":"https://github.com/bigemap/node-mbtiles#readme","keywords":["map","mbtiles"],"repository":{"type":"git","url":"git+ssh://git@github.com/bigemap/node-mbtiles.git"},"contributors":[{"name":"Tom MacWright","email":"tmcw"},{"name":"Will White","email":"willwhite"},{"name":"Dane Springmeyer","email":"springmeyer"},{"name":"Young Hahn","email":"yhahn"},{"name":"Konstantin Käfer","email":"kkaefer"},{"name":"Andrew Pendleton","email":"apendleton"},{"name":"Kai Dalgleish","email":"kaibot3000"}],"author":{"name":"Mapbox","url":"https://www.mapbox.com"},"bugs":{"url":"https://github.com/bigemap/node-mbtiles/issues"},"readme":"# mbtiles\n\nNode.js utilities and [tilelive](https://github.com/mapbox/tilelive.js) integration for the [MBTiles](https://github.com/mapbox/mbtiles-spec) format.\n\n[![Build Status](https://travis-ci.org/mapbox/node-mbtiles.svg?branch=master)](https://travis-ci.org/mapbox/node-mbtiles)\n[![Build status](https://ci.appveyor.com/api/projects/status/04wbok5rs3eroffe)](https://ci.appveyor.com/project/Mapbox/node-mbtiles)\n\n# Installation\n\n```\nnpm install @mapbox/mbtiles\n```\n\n```javascript\nvar MBTiles = require('@mapbox/mbtiles');\n```\n\n# API\n\n### Constructor\n\nAll MBTiles instances need to be constructed before any of the methods become available. *NOTE: All methods described below assume you've taken this step.*\n\n```javascript\nnew MBTiles('./path/to/file.mbtiles?mode={ro, rw, rwc}', function(err, mbtiles) {\n  console.log(mbtiles) // mbtiles object with methods listed below\n});\n```\n\nThe `mode` query parameter is a opening flag of mbtiles. It is optional, default as `rwc`. Available flags are:\n\n- `ro`: readonly mode, will throw error if the mbtiles does not exist.\n- `rw`: read and write mode, will throw error if the mbtiles does not exist.\n- `rwc`: read, write and create mode, will create a new mbtiles if the mbtiles does not exist.\n\n### Reading\n\n**`getTile(z, x, y, callback)`**\n\nGet an individual tile from the MBTiles table. This can be a raster or gzipped vector tile. Also returns headers that are important for serving over HTTP.\n\n```javascript\nmbtiles.getTile(z, x, y, function(err, data, headers) {\n  // `data` is your gzipped buffer - use zlib to gunzip or inflate\n});\n```\n\n**`getInfo(callback)`**\n\nGet info of an MBTiles file, which is stored in the `metadata` table. Includes information like zoom levels, bounds, vector_layers, that were created during generation. This performs fallback queries if certain keys like `bounds`, `minzoom`, or `maxzoom` have not been provided.\n\n```javascript\nmbtiles.getInfo(function(err, info) {\n  console.log(info); // info\n});\n```\n\n**`getGrid(z, x, y, callback)`**\n\nGet a [UTFGrid](https://github.com/mapbox/utfgrid-spec) tile from the MBTiles table.\n\n```javascript\nmbtiles.getGrid(z, x, y, function(err, data) {\n  // continue onwards\n});\n```\n\n### Writing\n\n**`startWriting`** AND **`stopWriting`**\n\nIn order to write a new (or currently existing) MBTiles file you need to \"start\" and \"stop\" writing. First, [construct](#constructor) the MBTiles object.\n\n```javascript\nmbtiles.startWriting(function(err) {\n  // start writing with mbtiles methods (putTile, putInfo, etc)\n  mbtiles.stopWriting(function(err) {\n    // stop writing to your mbtiles object\n  });\n});\n```\n\n**`putTile(z, x, y, buffer, callback)`**\n\nAdd a new tile buffer to a specific ZXY. This can be a raster tile or a _gzipped_ vector tile (we suggest using `require('zlib')` to gzip your tiles).\n\n```javascript\nvar zlib = require('zlib');\n\nzlib.gzip(fs.readFileSync('./path/to/file.mvt'), function(err, buffer) {\n  mbtiles.putTile(0, 0, 0, buffer, function(err) {\n    // continue onward\n  });\n});\n```\n\n**`putInfo(data, callback)`**\n\nPut an information object into the metadata table. Any nested JSON will be stringified and stored in the \"json\" row of the metadata table. This will replace any matching key/value fields in the table.\n\n```javascript\nvar exampleInfo = {\n  \"name\": \"hello-world\",\n  \"description\":\"the world in vector tiles\",\n  \"format\":\"pbf\",\n  \"version\": 2,\n  \"minzoom\": 0,\n  \"maxzoom\": 4,\n  \"center\": \"0,0,1\",\n  \"bounds\": \"-180.000000,-85.051129,180.000000,85.051129\",\n  \"type\": \"overlay\",\n  \"json\": `{\"vector_layers\": [ { \"id\": \"${layername}\", \"description\": \"\", \"minzoom\": 0, \"maxzoom\": 4, \"fields\": {} } ] }`\n};\n\nmbtiles.putInfo(exampleInfo, function(err) {\n  // continue onward\n});\n```\n\n**`putGrid(z, x, y, grid, callback)`**\n\nInserts a [UTFGrid](https://github.com/mapbox/utfgrid-spec) tile into the MBTiles store. Grids are in JSON format.\n\n```javascript\nvar fs = require('fs');\nvar grid = JSON.parse(fs.readFileSync('./path/to/grid.json', 'utf8'));\nmbtiles.putGrid(0, 0, 0, grid, function(err) {\n  // continue onward\n});\n```\n\n## Hook up to tilelive\n\nWhen working at scale, node-mbtiles is meant to be used within a [Tilelive](https://github.com/mapbox/tilelive) ecosystem. For example, you could set up an MBTiles file as a \"source\" and an S3 destination as a \"sink\" (using tilelive-s3). Assuming you have a system set up with an `mbtiles://` protocol that points to a specific file and authorized to write to the s3 bucket:\n\n```javascript\nvar tilelive = require('@mapbox/tilelive');\nvar MBTiles = require('@mapbox/mbtiles');\nvar s3 = require('@mapbox/tilelive-s3');\n\ns3.registerProtocols(tilelive);\nMBTiles.registerProtocols(tilelive);\n\nvar sourceUri = 'mbtiles:///User/hello/path/to/file.mbtiles';\nvar sinkUri = 's3://my-bucket/tiles/{z}/{x}/{y}';\n\n// load the mbtiles source\ntilelive.load(sourceUri, function(err, src) {\n  // load the s3 sink\n  tilelive.load(sinkUri, function(err, dest) {\n\n    var options = {}; // prepare options for tilelive copy\n    options.listScheme = src.createZXYStream(); // create ZXY stream from mbtiles\n\n    // now copy all tiles to the destination\n    tilelive.copy(src, dst, options, function(err) {\n      console.log('tiles are now on s3!');\n    });\n  });\n});\n```\n\n# Test\n\n```\nnpm test\n```\n","readmeFilename":"README.md"}