{"_id":"@maphubs/tokml","_rev":"6-1e099cae0e43df72f7af4f749421db2b","name":"@maphubs/tokml","dist-tags":{"latest":"0.6.1"},"versions":{"0.5.0":{"name":"@maphubs/tokml","version":"0.5.0","description":"convert geojson to kml","main":"index.js","scripts":{"test":"tap test/*.js","build":"browserify -s tokml index.js > tokml.js","cov":"istanbul cover test/kml.test.js && coveralls < ./coverage/lcov.info"},"repository":{"type":"git","url":"git+https://github.com/maphubs/tokml.git"},"keywords":["kml","geojson","geo","maps"],"bin":{"tokml":"tokml"},"author":{"name":"Kristofor Carle"},"license":"BSD-2-Clause","devDependencies":{"browserify":"^16.2.3","corslite":"0.0.7","coveralls":"^3.0.2","fuzzer":"^0.2.1","glob":"^7.1.3","istanbul":"^0.4.5","tap":"^12.1.1"},"dependencies":{"minimist":"^1.2.0","rw":"^1.3.3","strxml":"github:mapbox/strxml","xml-escape":"^1.1.0"},"gitHead":"25a35ba5fbf68e2055c8d19b72959a6d244b1c9c","bugs":{"url":"https://github.com/maphubs/tokml/issues"},"homepage":"https://github.com/maphubs/tokml#readme","_id":"@maphubs/tokml@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.2.1","_npmUser":{"name":"kriscarle","email":"kris@maphubs.com"},"dist":{"integrity":"sha512-onksUZiWpDWwte6RkFHnf0L4nKje+wRW8OSS7363kY5G7Mwgj7XS5hHZMBkregQBuZwy1u3vVX9uTR1uu6z13w==","shasum":"7c275adede0f74fb084830c96fa3d6239d7a32d5","tarball":"https://registry.npmjs.org/@maphubs/tokml/-/tokml-0.5.0.tgz","fileCount":98,"unpackedSize":82879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcN9/eCRA9TVsSAnZWagAAr1IP/j0jP8tkA0ji6HlFFAJU\nL13d2u5rZ5UAJnNZSIfvTWq0gGXGiLv3j0TBE5DNUF6Rod+jeF22OTe7Ffg9\ncgAct430BYZr0KEpzYPxusYCgPt2iqzGzjoX6QVrM5xrq7NIXvkybVqXwXmD\nKD+sq2O7NR1Vzl4HThe4E310d4ZPeTnizi93hWTiCSPZLSFnyEOW1gKBBA++\ndocsEl2i0LNWTGauAecyE/mjRNC4AeFAlhlJm5L2C/o3s/6IVxmcWtAxDxOW\n0bN+s2t99Y7JFz3wTlr0W7U+GDChsPpV2w7TqFf2O0JsyYd7ytVaiYo7rRLq\nSG2x3M4lVC1tZQr4NKRL+qyZLBi+cTGt+4qjQPC83XVWpu4aQrjo+bFCL1yz\n5P122Z+MJKI877CPvu94sI32A2JCgZy/z8w9oBBYN+JGRassGTFc3n/YpEr7\nfHij7hGYoDRyEOPU3/S6pxxGE/dGi/zwvmh3mY7QxSIzQr7HRpLVnsc7a67N\nJ07w8tR6TGT9uKlgm+2HHz5bsp1ahaZAou6CgDGXU5mqEaWfEEeXODFlGZxN\notm5HRLc8zUvwqvzO53aAQ5IVFvgin+dZF6FXmRmNie2Y94ghPqynwdqMwBc\n8gZqJPdKoTnFPAN7AOyIKCYFlaIVoDca230J/VDPYFTkq+63YGfekhThvsqu\nR57y\r\n=4Us7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICg6BvY2PiWbcAw7X449SzX+6yUeaTkndp/bTbrUHZ3ZAiAr7MIVxVikXUhUUGcdV3gVQjZzJ31MGOz74Eirr/WgYw=="}]},"maintainers":[{"name":"kriscarle","email":"kris@maphubs.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.5.0_1547165661095_0.5280183541957755"},"_hasShrinkwrap":false},"0.5.2":{"name":"@maphubs/tokml","version":"0.5.2","description":"convert geojson to kml","main":"index.js","scripts":{"test":"tap test/*.js","build":"browserify -s tokml index.js > tokml.js","cov":"istanbul cover test/kml.test.js && coveralls < ./coverage/lcov.info"},"repository":{"type":"git","url":"git+https://github.com/maphubs/tokml.git"},"keywords":["kml","geojson","geo","maps"],"bin":{"tokml":"tokml"},"author":{"name":"Kristofor Carle"},"license":"BSD-2-Clause","devDependencies":{"browserify":"^16.2.3","corslite":"0.0.7","coveralls":"^3.0.2","fuzzer":"^0.2.1","glob":"^7.1.3","istanbul":"^0.4.5","tap":"^12.1.1"},"dependencies":{"minimist":"^1.2.0","rw":"^1.3.3","strxml":"github:mapbox/strxml","xml-escape":"^1.1.0"},"gitHead":"df8756dbc18b36b2d7ad677b1be06b62b08e5fae","bugs":{"url":"https://github.com/maphubs/tokml/issues"},"homepage":"https://github.com/maphubs/tokml#readme","_id":"@maphubs/tokml@0.5.2","_npmVersion":"6.4.1","_nodeVersion":"10.2.1","_npmUser":{"name":"kriscarle","email":"kris@maphubs.com"},"dist":{"integrity":"sha512-UZKR5aC3oSkWBlWV26DOgVHNX8/bTWt8Taug3rpzmGM9rmBj112ucTufkVAyBmoMFKVY6xPO0kvxYTUKLFO/iQ==","shasum":"cef1491aee5402607c6dd5e205ecbba156d76c75","tarball":"https://registry.npmjs.org/@maphubs/tokml/-/tokml-0.5.2.tgz","fileCount":100,"unpackedSize":83725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPRf+CRA9TVsSAnZWagAA3CYQAKS3OMDBTMO8cjBTqH3g\nYinnQkJB/OpJgmFDHqdSRLhln1/xFD5E8xatAOB4mTM4QATdbY8T3+ZsYLsa\nZ8pozc4e/oXgpd8J6f0kiuf84DPwe8CA1XSZNy3jv+wDV2eAhVyviy8IBaUc\neZfb9llWCbRYUPFrdQh0HM1uQEt9bfadjUgYnXMux3aMH15TFW4/p00rytB0\ngIpf56omDYi85fqwmEnXOiNOVN1y1y80sOGvUNCFmdNthOe2th0Hv+jqpFiP\niKHRunFslKKJT/MncIqIqGqO/f+ziGAAJRi7UzbFbn9ICeIrj4WA6AT+FQ8r\nMC9wSA/bzKNR13iFy5EmvlyiFsBfI6rbdZoUEhUhLWCLStrj1XkZWYHktMO/\nPgBNm364zztsxvgmZG5CpWEaOP9DiFnROwfBUFAmMZKL95w5lRYfWtJ7uXsC\n2p6/gqz4uM+LF2YCLkckN3M+scn8d8KgXspnv9IS40Zb5HWH7YIMH8KsUhfY\nQh3gHb1pbM+3JEUsQ3J9VdizB3PisUtpD4MNPLZNBI7tKcFNM9kqK/CGwlDN\nxtjGj7bnSbaRc2IAdzW5KEHTvY+2+lkwR5ZbBoWiaEyCW2MwJ9gSC84MJp1U\n8w+yn7I4ke9DGQ5RQVoPqljZ180WypzNRc5OwcTsCx2h4y3M4TsrIi2AbNRD\nImEJ\r\n=EKyM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIy+eqr2BG+JUmVvo71NgFtaUOAzyDuOAej7qu1IxDMgIgWNYKsAQw+fwy2t0SwpgkBJQyNe0J6OWnrcXTyJaTMzw="}]},"maintainers":[{"name":"kriscarle","email":"kris@maphubs.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.5.2_1547507709964_0.8149721627017168"},"_hasShrinkwrap":false},"0.6.0":{"name":"@maphubs/tokml","version":"0.6.0","description":"convert geojson to kml","main":"index.js","scripts":{"test":"tap test/*.js","build":"browserify -s tokml index.js > tokml.js","cov":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/maphubs/tokml.git"},"keywords":["kml","geojson","geo","maps"],"bin":{"tokml":"tokml"},"author":{"name":"Kristofor Carle"},"license":"BSD-2-Clause","devDependencies":{"browserify":"^16.5.2","coveralls":"^3.1.0","fuzzer":"^0.2.1","glob":"^7.1.3","nyc":"^15.1.0","tap":"^14.10.8"},"dependencies":{"minimist":"^1.2.5","rw":"^1.3.3"},"gitHead":"9e1db716596b7b93f87537b209952c32a04f5e63","bugs":{"url":"https://github.com/maphubs/tokml/issues"},"homepage":"https://github.com/maphubs/tokml#readme","_id":"@maphubs/tokml@0.6.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-AFf+mJXe8IN9uJWSx9VDN8HCEO9ebBTbM25PYpBg5GeGkGNCA2nyazhv1mFw7QXQFDA7Lne3ycKuG5tgs6TE1g==","shasum":"fd8d51be7214926f48d85f25fbbb5a4a45c14670","tarball":"https://registry.npmjs.org/@maphubs/tokml/-/tokml-0.6.0.tgz","fileCount":100,"unpackedSize":66843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUsKJCRA9TVsSAnZWagAA5P8P/j+1/l5AEkR/cP6eqDDq\n/MwpeVqgaw+5HrQYsV4QCC7HOwPmilDJ/JqWpG2H8yHMePTQdSf1Uphm6e+5\nh7oeVTIy+3xd/CuoP/npA2kJq89XlhfQyvU8TcVKTgxZUz3dVtIFss/7xpNq\n8b/KDSMxJcTgCzmENmDO2rCZ1hMexEPlAUejBl/hZquRMV0ZLZMUCQljKOXU\n4QRHmqWCXJeBYHvJuI57IzWYQX5zJpyleLt15BC9Uw3blogvlU9RZ/8PAFk7\nD2qJ8+b41QMaGkdaSacHpx7K0zn+dJJPLwntDAU1MTJCLYWH40T7ip9g5Gm1\nta53dWGCNB2IRKx5n/USU1TescTHzKNs/iXNR9lsBdMi/BuTM7SR31/HZooO\nPf7Amw9XIpYDwLgweuLR5r8bxlwbl17Vumv0te3njnieBBTMbET1G0cWn0wk\ncHUNTFTBUxd7e2abjMMMnQ8ai2KlP/e0tlnDSd6zdEYmEkplu+trI84COg5p\neSh0yV5hQk88xKIWhnF8f44AvMfb+eiY1Os+yL7de5sR3+Y/olm4PqpEHGyQ\neGbkVKyNTkCrGQSR6wYq2Sme6EjVKvDSxPWXYMFA1fX/y8ULl7MzdGZnYLva\nXDFCeDQjnMOAUrLoFRSeb1GjzvTkjWXFNNpZOG3ANayfC1loCOPqcRZBQI1o\nAQ0W\r\n=p0TG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIqIoMmJFqOcjgn6iPbPtc02ASIsHJkOnbDe2Ic1jo/AiEAguX+af2T1aNLnpULBBp3li2jIDdnjjMbElIbcF1Uh1U="}]},"_npmUser":{"name":"kriscarle","email":"kris@maphubs.com"},"directories":{},"maintainers":[{"name":"kriscarle","email":"kris@maphubs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.6.0_1616036488927_0.197888023862417"},"_hasShrinkwrap":false},"0.6.1":{"name":"@maphubs/tokml","version":"0.6.1","description":"convert geojson to kml","main":"index.js","scripts":{"test":"tap test/*.js","build":"browserify -s tokml index.js > tokml.js","cov":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/maphubs/tokml.git"},"keywords":["kml","geojson","geo","maps"],"bin":{"tokml":"tokml"},"author":{"name":"Kristofor Carle"},"license":"BSD-2-Clause","devDependencies":{"browserify":"^16.5.2","coveralls":"^3.1.1","fuzzer":"^0.2.1","glob":"^7.2.0","nyc":"^15.1.0","tap":"^15.1.6"},"dependencies":{"minimist":"^1.2.5","rw":"^1.3.3"},"gitHead":"9c639cd0abe96a9022987ba5eab452b2da887c7c","bugs":{"url":"https://github.com/maphubs/tokml/issues"},"homepage":"https://github.com/maphubs/tokml#readme","_id":"@maphubs/tokml@0.6.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-C1qIeLpSDKPIQmYxiPmSZbw1eQDIaWTzeIMf2ym3gzY1q0b7UwDQDuUpccidrdLqOcERx2dlT4URhKl9H2scfA==","shasum":"82c9f42805780e802c649e3d64e4e9326c55b080","tarball":"https://registry.npmjs.org/@maphubs/tokml/-/tokml-0.6.1.tgz","fileCount":100,"unpackedSize":67071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFDnRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojjxAAjKMpoc2wJVBc59g7jfCa9k0NU9Mi41qQ+NLBSDvi6W2799A5\r\nG76JrHaOeNnWlufdYId+GwVXm+XARKqCC5M3iipEgQxgfWiFxxJl33WeCWoN\r\n4N0dTocuK5pnqISnuLnlvWw17fyOJTPDhy7LRvsPq/MPKexHdSseZFIusAuW\r\nxUIinQH/hWcnOLHoet+OghgMw6m3dMJtYpwhtfISVXTQr4gImApKKwd5Ibps\r\ngUPmXU84iNSguem4or/Q2kEw2zqYd5fT6fW3avTqpR3jgajUXh4qcARwcXz1\r\nQ5otyGMPJNyqIbqGL0dW09pHR2nO2UyBVIuVreDGJJJ+giGS+tQiLdws8Okf\r\nyguO9jrfhuEHN+1/ufs2QBNVnggWWV+hFhnzVRNi8rV1fwQXXtesEEYqtBpt\r\ne0I0UgnKqYAj4+QpLEqE07ILqd2pQJrzTGMtE00PvCXFzJEuNqaiSMln10eu\r\nq7s1eTmVpSziUeqjktlelsFwexQMzJ3rFi3DDATxy9wjDWJbSG5HucmI9mQw\r\nHWV3XLrmDqAI2YGR7G+u73n2uWfvw6NPIDZfIneMi47aveoDkbPw4lK+Uz1/\r\nRg55QgrhC3QYV9KI1RZ5EbgghRyvM1LxPcoCUGEzeqS6H6Uikh5taRQi0Ql9\r\ntFRJD8H5ad66nQfl4cttoU+Px6B1sK4Fwws=\r\n=M8ch\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJscA3XG+n47FjTKpCoB4I5x4Y3DiNig9hA1Z2x+9MkAiBoEAB5AF2bf2ULMKFgFVLVUZzqjvJUU0h2KsdaVfkGNw=="}]},"_npmUser":{"name":"kriscarle","email":"kris@maphubs.com"},"directories":{},"maintainers":[{"name":"kriscarle","email":"kris@maphubs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.6.1_1645492689584_0.15091467839285122"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-11T00:14:20.957Z","0.5.0":"2019-01-11T00:14:21.304Z","modified":"2022-04-06T03:32:59.246Z","0.5.1":"2019-01-14T23:01:43.201Z","0.5.2":"2019-01-14T23:15:10.151Z","0.6.0":"2021-03-18T03:01:29.098Z","0.6.1":"2022-02-22T01:18:09.753Z"},"maintainers":[{"name":"kriscarle","email":"kris@maphubs.com"}],"description":"convert geojson to kml","homepage":"https://github.com/maphubs/tokml#readme","keywords":["kml","geojson","geo","maps"],"repository":{"type":"git","url":"git+https://github.com/maphubs/tokml.git"},"author":{"name":"Kristofor Carle"},"bugs":{"url":"https://github.com/maphubs/tokml/issues"},"license":"BSD-2-Clause","readme":"Forked from https://github.com/mapbox/tokml\n\n# tokml\n\nConvert [GeoJSON](http://geojson.org/) to [KML](https://developers.google.com/kml/documentation/).\n\n## Usage\n\nwith node/browserify\n\n    npm install --save @maphubs/tokml\n\notherwise:\n\n    wget https://raw.github.com/maphubs/tokml/master/tokml.js\n\nas a binary:\n\n    npm install -g @maphubs/tokml\n    tokml file.geojson > file.kml\n    tokml < file.geojson > file.kml\n\n## Example\n\n```js\n// kml is a string of KML data, geojsonObject is a JavaScript object of\n// GeoJSON data\nvar kml = tokml(geojsonObject);\n\n// grab name and description properties from each object and write them in\n// KML\nvar kmlNameDescription = tokml(geojsonObject, {\n  name: \"name\",\n  description: \"description\",\n});\n\n// name and describe the KML document as a whole\nvar kmlDocumentName = tokml(geojsonObject, {\n  documentName: \"My List Of Markers\",\n  documentDescription: \"One of the many places you are not I am\",\n});\n```\n\n## API\n\n### `tokml(geojsonObject, [options])`\n\nGiven [GeoJSON](http://geojson.org/) data as an object, return KML data as a\nstring of XML.\n\n`options` is an optional object that takes the following options:\n\n**The property to name/description mapping:** while GeoJSON supports freeform\n`properties` on each feature, KML has an expectation of `name` and `description`\nproperties that are often styled and displayed automatically. These options let\nyou define a mapping from the GeoJSON style to KML's.\n\n- `name`: the name of the property in each GeoJSON Feature that contains\n  the feature's name\n- `description`: the name of the property in each GeoJSON Feature that contains\n  the feature's description\n\n**Timestamp:** KML can associate features with a moment in time via the `TimeStamp` tag. GeoJSON doesn't\nhave a comparable field, but a custom property can be mapped\n\n- `timestamp`: the name of the property in each GeoJSON Feature that contains\n  a timestamp in XML Schema Time (yyyy-mm-ddThh:mm:sszzzzzz)\n\n**Document name and description**: KML supports `name` and `description` properties\nfor the full document.\n\n- `documentName`: the name of the full document\n- `documentDescription`: the description of the full document\n\n**[simplestyle-spec](https://github.com/mapbox/simplestyle-spec)** support:\n\n- `simplestyle`: set to `true` to convert simplestyle-spec styles into KML styles\n\n## Development\n\nRequires [node.js](http://nodejs.org/) and [browserify](https://github.com/substack/node-browserify):\n\nTo build `tokml.js`:\n\n    make\n\nTo run tests:\n\n    yarn install\n    yarn run test\n","readmeFilename":"README.md"}