{"_id":"@mapbox/bundle-fairy","_rev":"301-e1c1f82c11f32e261bc9c20e26c43d5b","name":"@mapbox/bundle-fairy","description":"Check if ZIP is a bundle and extract","dist-tags":{"latest":"0.1.0","dev":"0.2.0-dev4"},"versions":{"0.0.4":{"name":"@mapbox/bundle-fairy","version":"0.0.4","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"minimist":"^1.2.0","zipfile":"^0.5.9","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"gitHead":"b780a21f3188c44f8d3465e8d8081cb9e114b047","_id":"@mapbox/bundle-fairy@0.0.4","_shasum":"16f8d1c0fbe116c4e9566f11c85c5360120bb492","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.4.5","_npmUser":{"name":"mapsam","email":"sam@mapbox.com"},"dist":{"shasum":"16f8d1c0fbe116c4e9566f11c85c5360120bb492","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.0.4.tgz","integrity":"sha512-arix/TjkG6b12sfoTP8dHVOAf9VKl6fr8MVs3N5THsCx7kv2jkd97A4RS5ZCCdwpQfzLUQ/1y1Awy7gkBuaYuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEnfY49IazEvHKz8ExpStobu0DkoHMVclyWhGfVRRQt+AiEAuptD4eSSGt5H5S6xFJvGqdOYDe1rexsxS712w4DRaD8="}]},"maintainers":[{"name":"mapsam","email":"sam@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bundle-fairy-0.0.4.tgz_1484778960844_0.05922422558069229"},"directories":{}},"0.1.0":{"name":"@mapbox/bundle-fairy","version":"0.1.0","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"minimist":"^1.2.0","zipfile":"^0.5.9","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"gitHead":"261c401fe0297ebc88a1e871577ee42cfe2f2b18","_id":"@mapbox/bundle-fairy@0.1.0","_shasum":"d4b2f38e8befaec4b2904b8114510fb632e0ef6d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.4.5","_npmUser":{"name":"mapsam","email":"sam@mapbox.com"},"dist":{"shasum":"d4b2f38e8befaec4b2904b8114510fb632e0ef6d","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.1.0.tgz","integrity":"sha512-u/ZwLH2YniyVh1rW65SfYdtNuT4Jz3ov8Aoa71kNhfOAIS84OWtmtEL/4QLnObEnuDRi1wswfnsXU/Y1XFCUMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPcSVull1laxD4BMpIskTIGoKSKb/ONODPtLY04Or+WAiEAhT4qcrcg9rL+Ca3LOp2nH1dlZlZyKgzgXzjGSSrtrx4="}]},"maintainers":[{"name":"aaronlidman","email":"aaronlidman@gmail.com"},{"name":"aarthykc","email":"aarthy@mapbox.com"},{"name":"ajithranka","email":"ajith@mapbox.com"},{"name":"aliceykuo","email":"alice@mapbox.com"},{"name":"alinapaz","email":"alinapaz@gmail.com"},{"name":"alulsh","email":"ulsh@mapbox.com"},{"name":"amishas157","email":"amisha@mapbox.com"},{"name":"amyleew","email":"amyleewalton@gmail.com"},{"name":"andreasviglakis","email":"andreas.viglakis@gmail.com"},{"name":"ansis","email":"ansis.brammanis@gmail.com"},{"name":"aparlato","email":"alex.parlato@mapbox.com"},{"name":"apendleton","email":"andrew@mapbox.com"},{"name":"arunasank","email":"aruna@mapbox.com"},{"name":"batpad","email":"sanjay@mapbox.com"},{"name":"benjamintd","email":"benjamin@mapbox.com"},{"name":"bhousel","email":"bryan@mapbox.com"},{"name":"bkowshik","email":"bhargav.kowshik@gmail.com"},{"name":"brendanmcfarland","email":"brendan@mapbox.com"},{"name":"bsrinivasa","email":"bharata+npm@mapbox.com"},{"name":"bsudekum","email":"bobby@mapbox.com"},{"name":"camillacaros","email":"camilla@mapbox.com"},{"name":"captainbarbosa","email":"nadia.barbosa@mapbox.com"},{"name":"chaupow","email":"hello@chau-nguyen.de"},{"name":"colleenmcginnis","email":"colleen.mcginnis@mapbox.com"},{"name":"danieljh","email":"daniel+npm@trvx.org"},{"name":"danpat","email":"danpat@danpat.net"},{"name":"danswick","email":"dan@mapbox.com"},{"name":"dasulit","email":"dana.sulit@mapbox.com"},{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},{"name":"dnomadb","email":"damon@mapbox.com"},{"name":"dthompson","email":"dthompson@gmail.com"},{"name":"emilymcafee","email":"emily@mapbox.com"},{"name":"emilymdubois","email":"dubois@mapbox.com"},{"name":"enf","email":"fischer@mapbox.com"},{"name":"freenerd","email":"spam@freenerd.de"},{"name":"geohacker","email":"sajjadkm@gmail.com"},{"name":"ghoshkaj","email":"ghoshkaj@gmail.com"},{"name":"gretacb","email":"carol@mapbox.com"},{"name":"ian29","email":"ian.villeda@gmail.com"},{"name":"ianshward","email":"ian@mapbox.com"},{"name":"ingalls","email":"nicholas.ingalls@gmail.com"},{"name":"isiyu","email":"siyu.song@gmail.com"},{"name":"jacquestardie","email":"hi@jacquestardie.org"},{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"jothirnadh","email":"jothirnadh@mapbox.com"},{"name":"jrpruit1","email":"jake@jakepruitt.com"},{"name":"kaibot3000","email":"kai@mapbox.com"},{"name":"kaidalgleish","email":"kai@mapbox.com"},{"name":"karenzshea","email":"karen@mapbox.com"},{"name":"karitotp","email":"karito@mapbox.com"},{"name":"katydecorah","email":"decorah@mapbox.com"},{"name":"kkaefer","email":"mail@kkaefer.com"},{"name":"k-mahoney","email":"kara.e.mahoney@gmail.com"},{"name":"laurier","email":"l@pwd.io"},{"name":"lbud","email":"lauren@mapbox.com"},{"name":"lily-chai","email":"lily@mapbox.com"},{"name":"l-r","email":"laurier@mapbox.com"},{"name":"lucaswoj","email":"lucas@lucaswoj.com"},{"name":"lxbarth","email":"alex@mapbox.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"maning","email":"emmanuel.sambale@gmail.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapsam","email":"sam@mapbox.com"},{"name":"mateov","email":"matt@mapbox.com"},{"name":"mattficke","email":"matt@mattficke.com"},{"name":"mayaqgao","email":"mayaqgao@gmail.com"},{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},{"name":"miccolis","email":"jeff@miccolis.net"},{"name":"miles-dev","email":"miles.sackler@mapbox.com"},{"name":"mokob","email":"moritz@mapbox.com"},{"name":"mollymerp","email":"mollylloyd@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"msirenko","email":"max@mapbox.com"},{"name":"natslaughter","email":"nat@mapbox.com"},{"name":"nickcordella","email":"nick.cordella@mapbox.com"},{"name":"nickidlugash","email":"nicki@mapbox.com"},{"name":"oini","email":"oindrila.gupta92@gmail.com"},{"name":"oxidase","email":"michael.krasnyk@gmail.com"},{"name":"pdgoodman","email":"paul@mapbox.com"},{"name":"perrygeo","email":"perrygeo@gmail.colm"},{"name":"planemad","email":"arun.planemad@gmail.com"},{"name":"pratikyadav","email":"pratik@mapbox.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"rodowi","email":"rod@wilhel.me"},{"name":"rub21","email":"ruben@mapbox.com"},{"name":"rumc","email":"r.ragupathy85@gmail.com"},{"name":"ryan-baumann","email":"rsbaumann@gmail.com"},{"name":"saikia.abhishek","email":"abhishek@mapbox.com"},{"name":"samanbb","email":"saman@mapbox.com"},{"name":"sbma44","email":"tlee@mapbox.com"},{"name":"scothis","email":"scothis@gmail.com"},{"name":"springmeyer","email":"dane@mapbox.com"},{"name":"srividyacb","email":"srividyabharadwaj26@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"themarex","email":"patrick@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"tony-cj","email":"tony.chen@mapbox.com"},{"name":"tristen","email":"tristen.brown@gmail.com"},{"name":"uvollmer","email":"ugo.vollmer@mapbox.com"},{"name":"vincents","email":"vincent.sarago@mapbox.com"},{"name":"virginiayung","email":"virginia@mapbox.com"},{"name":"who8mycakes","email":"nina@mapbox.com"},{"name":"willwhite","email":"will@mapbox.com"},{"name":"xrwang","email":"xiaowei@mapbox.com"},{"name":"yhahn","email":"young@mapbox.com"},{"name":"yunjieli","email":"yunjie.li@mapbox.com"},{"name":"zmully","email":"mully@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bundle-fairy-0.1.0.tgz_1486058889238_0.13935520639643073"},"directories":{}},"0.2.0-dev1":{"name":"@mapbox/bundle-fairy","version":"0.2.0-dev1","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"minimist":"^1.2.0","zipfile":"^0.5.12","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"readme":"# bundle-fairy\n\n[![Build Status](https://travis-ci.org/mapbox/bundle-fairy.svg?branch=master)](https://travis-ci.org/mapbox/bundle-fairy)\n\nDetect *bundles* of geometry.\n\n#### What is a bundle?\nA *bundle* is a compressed (zipped `.zip`) directory containing either:\n- A collection of GeoJSON files relating back to their original source, plus correlating index files if needed ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n- A single CSV/GeoJSON file, plus its correlating index file ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n\nBunldes are used as an in-between format for two cases:\n\n1. GPX/KML sources converted to GeoJSON. Each GeoJSON file represents an individual layer from the original GPX/KML source. Additionally, depending on the size of each new GeoJSON layer, Mapnik will produce an index file per layer to help optimize tile copying.\n2. Large GeoJSON or CSV files with a correlating index file to help optimize tile copying.\n\n### A brief specification\n\nA *bundle* MUST include:\n\n* a `.zip` extension\n* at least one geo file (`.geojson` or `.csv`)\n\nA *bundle* MAY include:\n\n* one or more spatial index files (`.index`)\n* a `metadata.json` file, which is exactly the [output of `mapnik-omnivore`](https://github.com/mapbox/mapnik-omnivore#example-of-returned-metadata)\n* nested directories of files (infinite depth)\n* for GPX/KML sources, an archived copy of the original file  \n\nA *bundle* MAY NOT include:\n\n* Two different types of geo files (i.e. a `.geojson` AND a `.csv`)\n* Any geo file formats other than `geojson` or `csv`\n\n# Install\n\n```\nnpm install @mapbox/bundle-fairy\n```\n\n# Usage\n\n### Require\n\n```javascript\nvar fairy = require('@mapbox/bundle-fairy');\n```\n\n#### check if a file is a bundle, `isbundle()`\n\n```javascript\nfairy.isbundle('./path/to/file.zip', function(err, isbundle) {\n  if (err) throw err;\n  console.log(isbundle); // `true` or `false`\n});\n```\n\n#### extract a bundle, `extract()`\n```javascript\nfairy.extract('./path/to/file.zip', function(err, result) {\n  if (err) throw err;\n  console.log(result); // comma separated list of files within the bundle\n});\n```\n\nYou can pass in the `dirname` option to just get the full directory path back:\n\n```javascript\nfairy.extract('./path/to/file.zip', { dirname: true }, function(err, result) {\n  if (err) throw err;\n  console.log(result); // /User/waka/files/tmp-bundle\n});\n```\n\n### CLI Usage\n\n**Check if is bundle**\n```shell\n$ bundle-fairy isbundle <zipfile>\n```\n\n**Extract bundle**\n```shell\n$ bundle-fairy extract <zipfile>\n$ bundle-fairy extract <zipfile> --dirname # returns just directory name\n```\n\n# Test\n\n```shell\nnpm test\n```\n\n`¯\\_(ツ)_/¯`\n","readmeFilename":"readme.md","gitHead":"85c6a720c984aafee157da3832d77f00f80e4feb","_id":"@mapbox/bundle-fairy@0.2.0-dev1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-tElIYDRW8agjwJCMtO+VHnlR1T8thMYwtTITdBicPt6M5UFZnoswX4R3fbMnc9qqggydDN/P/GMGan+FipWsnA==","shasum":"5c89082bc257c1c276bc9c4b51ea45bc8dbfc7ae","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.2.0-dev1.tgz","fileCount":33,"unpackedSize":6176913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLF9vCRA9TVsSAnZWagAA2nkP/iWDjbsLNcLFu2mPRfd9\nMTEcyuq0GcAzju8Q69VHSl9qX7F/L6hhA1xX/c0UuS7Aqg8iiR/Iu78cLI5B\nc2J9tnVQlyaY8RnvaKj4UXQa9JcuawZAAZD7kfeOS/Ymuc78kPCfZvk7GnEt\ng5bmkSfkmiPNiwwbPvJdHTR6VKVc1N0N9npIORwQ8muS7+HWr0YqTgTJhtIy\nD1n8aTKal0EZMh4zl1M45+5/r9GLRKhLmhUcagIqZpp4c3G3Ftmg8VDmvqD6\n61xtMzqybwxtFfoR5jv+2s/JN9xW20/xZrJoZd56xWROmodwr3e0UUyZYsqm\nO2m+sSiMIb3QuyBHpZmi1PjUQo2qVa1hJTKkEmLdwTYH70D+cgiOYa9xhVVI\nxG8+buhEDgk8kIE3h5zK4zdRwqdeis9fopp4piYyVZgSPqQ05iKdPwHHfjUZ\nsDmXXvKUM8HWngCYpbM99sipFrxnJbuIRsXJmBGTOOhxccery9ol7lUOYeA5\nE0hg5r0RgGk/xsdOlSK4qI0z9fIsm3fH8rTdj9jfxrjMu0JLd0DO4VIaG5gg\nSh0rrYv12PPFmm8wowY4R+YjGyFzhmYwItIuxwWxzKxADeaIe9ByKbcA0VF7\nFFH/L+9/FWxdi7vO4zQRVoDR1GXP6mvYYz7J663N4Dozcr1iquabir4jlQpA\n5ufv\r\n=I5rp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC57WVPR6I7blG8X0l6fYm7cIwIXHp2u4twyYX5YMlQ7AIhAKKIkm7/mIrQfOaHK3b3SvRY/ZyKhWTt1jKkIEljvx8Z"}]},"maintainers":[{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"}],"_npmUser":{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundle-fairy_0.2.0-dev1_1596743535045_0.1206091142782757"},"_hasShrinkwrap":false},"0.2.0-dev2":{"name":"@mapbox/bundle-fairy","version":"0.2.0-dev2","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"adm-zip":"^0.4.16","minimist":"^1.2.0","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"readme":"# bundle-fairy\n\n[![Build Status](https://travis-ci.org/mapbox/bundle-fairy.svg?branch=master)](https://travis-ci.org/mapbox/bundle-fairy)\n\nDetect *bundles* of geometry.\n\n#### What is a bundle?\nA *bundle* is a compressed (zipped `.zip`) directory containing either:\n- A collection of GeoJSON files relating back to their original source, plus correlating index files if needed ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n- A single CSV/GeoJSON file, plus its correlating index file ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n\nBunldes are used as an in-between format for two cases:\n\n1. GPX/KML sources converted to GeoJSON. Each GeoJSON file represents an individual layer from the original GPX/KML source. Additionally, depending on the size of each new GeoJSON layer, Mapnik will produce an index file per layer to help optimize tile copying.\n2. Large GeoJSON or CSV files with a correlating index file to help optimize tile copying.\n\n### A brief specification\n\nA *bundle* MUST include:\n\n* a `.zip` extension\n* at least one geo file (`.geojson` or `.csv`)\n\nA *bundle* MAY include:\n\n* one or more spatial index files (`.index`)\n* a `metadata.json` file, which is exactly the [output of `mapnik-omnivore`](https://github.com/mapbox/mapnik-omnivore#example-of-returned-metadata)\n* nested directories of files (infinite depth)\n* for GPX/KML sources, an archived copy of the original file  \n\nA *bundle* MAY NOT include:\n\n* Two different types of geo files (i.e. a `.geojson` AND a `.csv`)\n* Any geo file formats other than `geojson` or `csv`\n\n# Install\n\n```\nnpm install @mapbox/bundle-fairy\n```\n\n# Usage\n\n### Require\n\n```javascript\nvar fairy = require('@mapbox/bundle-fairy');\n```\n\n#### check if a file is a bundle, `isbundle()`\n\n```javascript\nfairy.isbundle('./path/to/file.zip', function(err, isbundle) {\n  if (err) throw err;\n  console.log(isbundle); // `true` or `false`\n});\n```\n\n#### extract a bundle, `extract()`\n```javascript\nfairy.extract('./path/to/file.zip', function(err, result) {\n  if (err) throw err;\n  console.log(result); // comma separated list of files within the bundle\n});\n```\n\nYou can pass in the `dirname` option to just get the full directory path back:\n\n```javascript\nfairy.extract('./path/to/file.zip', { dirname: true }, function(err, result) {\n  if (err) throw err;\n  console.log(result); // /User/waka/files/tmp-bundle\n});\n```\n\n### CLI Usage\n\n**Check if is bundle**\n```shell\n$ bundle-fairy isbundle <zipfile>\n```\n\n**Extract bundle**\n```shell\n$ bundle-fairy extract <zipfile>\n$ bundle-fairy extract <zipfile> --dirname # returns just directory name\n```\n\n# Test\n\n```shell\nnpm test\n```\n\n`¯\\_(ツ)_/¯`\n","readmeFilename":"readme.md","gitHead":"8e7ca87abd56a6619daab8c7715b19095477fade","_id":"@mapbox/bundle-fairy@0.2.0-dev2","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ClmES9J9koE9KFYeGcLa02zotUKNtDIHc7AZJXlEnnMD4vRVV4MzcqxrN+BRx30h7sPABNNMgIR0yjBQSNPh9w==","shasum":"0e6547309433e01a4f34821834a78927d5bd0dc7","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.2.0-dev2.tgz","fileCount":33,"unpackedSize":6177190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLGtsCRA9TVsSAnZWagAAN3MP/2HVMcfM3yn6opt1mqFW\n8nKxwk5NNtCaugLjPjqLSWzev2PhGpGVemH0RNHn+2zwS9+XAf5SCZxiumuP\nyaB5g0Lwz/wiLiRip4wDckzVo2h29sRnqvfEtJ3jO3fTc+exzLIAPt92UNl4\nzvsi7f9Mnfqsu2w81xV7cTN1VDg+cfY6ML3sc6OilXn1fDkMgonwYCXmUoEE\nPVlGiyyb6FE5iE+r4h8j95JRQoconlaq47Da0EvTTP1pzECA82MG9a43C5I9\nzQqjFQ5cK1q2eW2cKgEYogWalcNrAC/iFBiIQQXeI3VNa/iYa6ClAjhkEyXs\nGyfIBVtoWxcxGCAE70BY8sYThAFjXpyyhGRPmQRIgqaWpFeQiA8D0sDLMvPK\nJGVKkcmpIu++gPdmPypmCrZFAvTgRZ2S/WcnHf7jmi0x6cqwWwbi/RBc/FtT\nX9aAZOuhAwacbJsJdEcM9wH7wx7wJaGbJpDh9WSgQG1LNDJfViKzXVDbBJgM\nB2wWXqDv6Gr7B9+OGtCHY1NnBJh6c+iQ1goaXsnoQ/+3CY3AYyWUVpEfT6Tp\nzyKoxc2QE4nQVMK8b3F8fSwNJqzObifcVc/wsfwGVoA5PTS4h5Gl4FVdgf7D\nuTMzCjw0dN4iPYVS/Y9lJQrCGwj2jaOFZc7V7yfDW+SUq1JCxos3ufZcpae7\nsY2w\r\n=6tZT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF82630IN3NITIDnYt1u5BVkK6l9BGNL1aFg97UfOjyNAiEAt1gvvpvl6dT7kLA9/Rmr7gHOcL7SFs7jyJB6qzwJ/qg="}]},"maintainers":[{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"}],"_npmUser":{"name":"mapbox-npm-07","email":"accounts+npmjs-07@mapbox.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundle-fairy_0.2.0-dev2_1596746604049_0.5269043836245908"},"_hasShrinkwrap":false},"0.2.0-dev3":{"name":"@mapbox/bundle-fairy","version":"0.2.0-dev3","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"adm-zip":"^0.4.16","minimist":"^1.2.0","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"readme":"# bundle-fairy\n\n[![Build Status](https://app.travis-ci.com/mapbox/bundle-fairy.svg?branch=master)](https://app.travis-ci.com/mapbox/bundle-fairy)\n\nDetect *bundles* of geometry.\n\n#### What is a bundle?\nA *bundle* is a compressed (zipped `.zip`) directory containing either:\n- A collection of GeoJSON files relating back to their original source, plus correlating index files if needed ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n- A single CSV/GeoJSON file, plus its correlating index file ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n\nBunldes are used as an in-between format for two cases:\n\n1. GPX/KML sources converted to GeoJSON. Each GeoJSON file represents an individual layer from the original GPX/KML source. Additionally, depending on the size of each new GeoJSON layer, Mapnik will produce an index file per layer to help optimize tile copying.\n2. Large GeoJSON or CSV files with a correlating index file to help optimize tile copying.\n\n### A brief specification\n\nA *bundle* MUST include:\n\n* a `.zip` extension\n* at least one geo file (`.geojson` or `.csv`)\n\nA *bundle* MAY include:\n\n* one or more spatial index files (`.index`)\n* a `metadata.json` file, which is exactly the [output of `mapnik-omnivore`](https://github.com/mapbox/mapnik-omnivore#example-of-returned-metadata)\n* nested directories of files (infinite depth)\n* for GPX/KML sources, an archived copy of the original file  \n\nA *bundle* MAY NOT include:\n\n* Two different types of geo files (i.e. a `.geojson` AND a `.csv`)\n* Any geo file formats other than `geojson` or `csv`\n\n# Install\n\n```\nnpm install @mapbox/bundle-fairy\n```\n\n# Usage\n\n### Require\n\n```javascript\nvar fairy = require('@mapbox/bundle-fairy');\n```\n\n#### check if a file is a bundle, `isbundle()`\n\n```javascript\nfairy.isbundle('./path/to/file.zip', function(err, isbundle) {\n  if (err) throw err;\n  console.log(isbundle); // `true` or `false`\n});\n```\n\n#### extract a bundle, `extract()`\n```javascript\nfairy.extract('./path/to/file.zip', function(err, result) {\n  if (err) throw err;\n  console.log(result); // comma separated list of files within the bundle\n});\n```\n\nYou can pass in the `dirname` option to just get the full directory path back:\n\n```javascript\nfairy.extract('./path/to/file.zip', { dirname: true }, function(err, result) {\n  if (err) throw err;\n  console.log(result); // /User/waka/files/tmp-bundle\n});\n```\n\n### CLI Usage\n\n**Check if is bundle**\n```shell\n$ bundle-fairy isbundle <zipfile>\n```\n\n**Extract bundle**\n```shell\n$ bundle-fairy extract <zipfile>\n$ bundle-fairy extract <zipfile> --dirname # returns just directory name\n```\n\n# Test\n\n```shell\nnpm test\n```\n\n`¯\\_(ツ)_/¯`\n","readmeFilename":"readme.md","gitHead":"c5eee6eba1797a0a3c1265d4da676251253e6311","_id":"@mapbox/bundle-fairy@0.2.0-dev3","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-op/bIN4d6y9Xz7x8Q3JxR6kTErMrx95ZeaSUOtf94QzcpdD1w22mhZq3fbBUWD8a4eubiySBbdO0A/+skfAj2w==","shasum":"0273d8c0491a5ddbeb3f30289a9a78eabce18b7b","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.2.0-dev3.tgz","fileCount":34,"unpackedSize":6177464,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMgFM9AD+YT9HJwY23J2LoZHmVAQCleWe09j6FOi2BCQIhAKl4+GfJ41AqZG0qiFNmj0km4k/hN+yI6fWTnUoML8JE"}]},"_npmUser":{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},"directories":{},"maintainers":[{"name":"mbx-npm-ci-production","email":"yannick.meeus+npm+production+ci@mapbox.com"},{"name":"mbx-npm-ci-staging","email":"yannick.meeus+npm+staging+ci@mapbox.com"},{"name":"mbx-npm-advanced-actions-production","email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com"},{"name":"mbx-npm-advanced-actions-staging","email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com"},{"name":"mbx-npm-09-production","email":"yannick.meeus+npm+prod+09@mapbox.com"},{"name":"mbx-npm-08-production","email":"yannick.meeus+npm+prod+08@mapbox.com"},{"name":"mbx-npm-07-production","email":"yannick.meeus+npm+prod+07@mapbox.com"},{"name":"mbx-npm-06-production","email":"yannick.meeus+npm+prod+06@mapbox.com"},{"name":"mbx-npm-05-production","email":"yannick.meeus+npm+prod+05@mapbox.com"},{"name":"mbx-npm-04-production","email":"yannick.meeus+npm+prod+04@mapbox.com"},{"name":"mbx-npm-03-production","email":"yannick.meeus+npm+prod+03@mapbox.com"},{"name":"mbx-npm-02-production","email":"yannick.meeus+npm+prod+02@mapbox.com"},{"name":"mbx-npm-01-production","email":"yannick.meeus+npm+prod+01@mapbox.com"},{"name":"mbx-npm-02-staging","email":"yannick.meeus@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-07","email":"accounts+npmjs-07@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-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundle-fairy_0.2.0-dev3_1696285942806_0.3560160221785804"},"_hasShrinkwrap":false},"0.2.0-dev4":{"name":"@mapbox/bundle-fairy","version":"0.2.0-dev4","description":"Check if ZIP is a bundle and extract","main":"index.js","scripts":{"pretest":"eslint bin test *.js","test":"tape test/*.test.js"},"bin":{"bundle-fairy":"bin/bundle-fairy.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","devDependencies":{"tape":"^4.5.1","eslint":"~2.4.0","queue-async":"^1.0.7"},"dependencies":{"adm-zip":"^0.4.16","minimist":"^1.2.0","mkdirp":"^0.5.1","rimraf":"^2.5.2"},"readme":"# bundle-fairy\n\n[![Build Status](https://app.travis-ci.com/mapbox/bundle-fairy.svg?branch=master)](https://app.travis-ci.com/mapbox/bundle-fairy)\n\nDetect *bundles* of geometry.\n\n#### What is a bundle?\nA *bundle* is a compressed (zipped `.zip`) directory containing either:\n- A collection of GeoJSON files relating back to their original source, plus correlating index files if needed ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n- A single CSV/GeoJSON file, plus its correlating index file ([produced by Mapnik](https://github.com/mapnik/mapnik/tree/master/utils/mapnik-index)).\n\nBunldes are used as an in-between format for two cases:\n\n1. GPX/KML sources converted to GeoJSON. Each GeoJSON file represents an individual layer from the original GPX/KML source. Additionally, depending on the size of each new GeoJSON layer, Mapnik will produce an index file per layer to help optimize tile copying.\n2. Large GeoJSON or CSV files with a correlating index file to help optimize tile copying.\n\n### A brief specification\n\nA *bundle* MUST include:\n\n* a `.zip` extension\n* at least one geo file (`.geojson` or `.csv`)\n\nA *bundle* MAY include:\n\n* one or more spatial index files (`.index`)\n* a `metadata.json` file, which is exactly the [output of `mapnik-omnivore`](https://github.com/mapbox/mapnik-omnivore#example-of-returned-metadata)\n* nested directories of files (infinite depth)\n* for GPX/KML sources, an archived copy of the original file  \n\nA *bundle* MAY NOT include:\n\n* Two different types of geo files (i.e. a `.geojson` AND a `.csv`)\n* Any geo file formats other than `geojson` or `csv`\n\n# Install\n\n```\nnpm install @mapbox/bundle-fairy\n```\n\n# Usage\n\n### Require\n\n```javascript\nvar fairy = require('@mapbox/bundle-fairy');\n```\n\n#### check if a file is a bundle, `isbundle()`\n\n```javascript\nfairy.isbundle('./path/to/file.zip', function(err, isbundle) {\n  if (err) throw err;\n  console.log(isbundle); // `true` or `false`\n});\n```\n\n#### extract a bundle, `extract()`\n```javascript\nfairy.extract('./path/to/file.zip', function(err, result) {\n  if (err) throw err;\n  console.log(result); // comma separated list of files within the bundle\n});\n```\n\nYou can pass in the `dirname` option to just get the full directory path back:\n\n```javascript\nfairy.extract('./path/to/file.zip', { dirname: true }, function(err, result) {\n  if (err) throw err;\n  console.log(result); // /User/waka/files/tmp-bundle\n});\n```\n\n### CLI Usage\n\n**Check if is bundle**\n```shell\n$ bundle-fairy isbundle <zipfile>\n```\n\n**Extract bundle**\n```shell\n$ bundle-fairy extract <zipfile>\n$ bundle-fairy extract <zipfile> --dirname # returns just directory name\n```\n\n# Test\n\n```shell\nnpm test\n```\n\n`¯\\_(ツ)_/¯`\n","readmeFilename":"readme.md","gitHead":"84555f6fbc91112ec0b20c573af9df5c6814d6c6","_id":"@mapbox/bundle-fairy@0.2.0-dev4","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-FrpAh+iX5alMwU+ZjAM0yt+p6af1cuYUriHGOyH6y4TXeVi13pn9WLbsE5c37LcCP2CpToh+ZKP2bxu2Ngw6Fg==","shasum":"ff03b8d352e0f02a0ac6011d8e6162192dd277c9","tarball":"https://registry.npmjs.org/@mapbox/bundle-fairy/-/bundle-fairy-0.2.0-dev4.tgz","fileCount":34,"unpackedSize":6177501,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5MvHnS6cpuemrNtL7pWgELDRdS/XjQIAkPe8B41cVoAiEAjiqb43ecOsugDeD3YAcC2ZlkwzBQzVHI0RZ0bDNbNDI="}]},"_npmUser":{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},"directories":{},"maintainers":[{"name":"mbx-npm-ci-production","email":"yannick.meeus+npm+production+ci@mapbox.com"},{"name":"mbx-npm-ci-staging","email":"yannick.meeus+npm+staging+ci@mapbox.com"},{"name":"mbx-npm-advanced-actions-production","email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com"},{"name":"mbx-npm-advanced-actions-staging","email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com"},{"name":"mbx-npm-09-production","email":"yannick.meeus+npm+prod+09@mapbox.com"},{"name":"mbx-npm-08-production","email":"yannick.meeus+npm+prod+08@mapbox.com"},{"name":"mbx-npm-07-production","email":"yannick.meeus+npm+prod+07@mapbox.com"},{"name":"mbx-npm-06-production","email":"yannick.meeus+npm+prod+06@mapbox.com"},{"name":"mbx-npm-05-production","email":"yannick.meeus+npm+prod+05@mapbox.com"},{"name":"mbx-npm-04-production","email":"yannick.meeus+npm+prod+04@mapbox.com"},{"name":"mbx-npm-03-production","email":"yannick.meeus+npm+prod+03@mapbox.com"},{"name":"mbx-npm-02-production","email":"yannick.meeus+npm+prod+02@mapbox.com"},{"name":"mbx-npm-01-production","email":"yannick.meeus+npm+prod+01@mapbox.com"},{"name":"mbx-npm-02-staging","email":"yannick.meeus@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-07","email":"accounts+npmjs-07@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-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundle-fairy_0.2.0-dev4_1696309668601_0.10876178965674543"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"name":"mbx-npm-ci-production","email":"yannick.meeus+npm+production+ci@mapbox.com"},{"name":"mbx-npm-ci-staging","email":"yannick.meeus+npm+staging+ci@mapbox.com"},{"name":"mbx-npm-advanced-actions-production","email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com"},{"name":"mbx-npm-advanced-actions-staging","email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com"},{"name":"mbx-npm-09-production","email":"yannick.meeus+npm+prod+09@mapbox.com"},{"name":"mbx-npm-08-production","email":"yannick.meeus+npm+prod+08@mapbox.com"},{"name":"mbx-npm-07-production","email":"yannick.meeus+npm+prod+07@mapbox.com"},{"name":"mbx-npm-06-production","email":"yannick.meeus+npm+prod+06@mapbox.com"},{"name":"mbx-npm-05-production","email":"yannick.meeus+npm+prod+05@mapbox.com"},{"name":"mbx-npm-04-production","email":"yannick.meeus+npm+prod+04@mapbox.com"},{"name":"mbx-npm-03-production","email":"yannick.meeus+npm+prod+03@mapbox.com"},{"name":"mbx-npm-02-production","email":"yannick.meeus+npm+prod+02@mapbox.com"},{"name":"mbx-npm-01-production","email":"yannick.meeus+npm+prod+01@mapbox.com"},{"name":"mbx-npm-02-staging","email":"yannick.meeus@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-07","email":"accounts+npmjs-07@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-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"}],"time":{"modified":"2023-10-03T05:07:49.261Z","created":"2017-01-18T22:36:03.795Z","0.0.4":"2017-01-18T22:36:03.795Z","0.1.0":"2017-02-02T18:08:12.496Z","0.2.0-dev1":"2020-08-06T19:52:15.384Z","0.2.0-dev2":"2020-08-06T20:43:24.301Z","0.2.0-dev3":"2023-10-02T22:32:23.127Z","0.2.0-dev4":"2023-10-03T05:07:48.866Z"},"homepage":"https://github.com/mapbox/bundle-fairy#readme","repository":{"type":"git","url":"git+https://github.com/mapbox/bundle-fairy.git"},"author":{"name":"Mapbox"},"bugs":{"url":"https://github.com/mapbox/bundle-fairy/issues"},"license":"ISC","readmeFilename":""}