{"_id":"@jlandrum/tokml","_rev":"3-8df296e5156132265d30b722f52e7119","name":"@jlandrum/tokml","dist-tags":{"latest":"0.6.1-ts2"},"versions":{"0.6.1":{"name":"@jlandrum/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.6","rw":"^1.3.3"},"gitHead":"0358c413ce575575d5c2958cec594aae858c23e6","bugs":{"url":"https://github.com/maphubs/tokml/issues"},"homepage":"https://github.com/maphubs/tokml#readme","_id":"@jlandrum/tokml@0.6.1","_nodeVersion":"14.19.2","_npmVersion":"8.14.0","dist":{"integrity":"sha512-JXBALE+8p6m4uQX/87HgyYM8CmdLgM0Kx/f6W0QcKJba5VEuJp9knzrcj7Reu6aXE8qrPL2hUxLYdNMnArNUWg==","shasum":"9f6c2b2b6bcd336555a312ed947c4beb11dd689c","tarball":"https://registry.npmjs.org/@jlandrum/tokml/-/tokml-0.6.1.tgz","fileCount":101,"unpackedSize":67438,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvoBxs8SFb30FvraL9CODVDweGxE7STT+WBYiuGeuVhAiEAyNityiAGOa3zmLsKJktHjYaa6LWt/ikqEfqGoLQgmUg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEjLyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3sg//dI8xEKAiEwUxhlKYb5vZXQJB40jsqPDJUxSi4a1sjTbVI0Gc\r\n+l4730yokX7ojgxrNKgHWXkjkRS/rdmTdkMfp2y6UA74ITeAjQJ2m9MCFYLu\r\ncGdwlbXpcwElza6vX9L14Gi6KgbpFy677A+CW17X7dcfpyY+NOQSxHSdS9ZM\r\nSj8rV4L/M1nGvNUbtouX7xw8jounwszCD09tVIo428YKCwpiVedSnjFGw7GS\r\nOP1bhccDwtlexBClBisbeWIt6/RFnM8Si+/ZDXrAiBDJP6AQAr3p0a7wgzUa\r\n1VkkmMAUmXOfSaFtfp374sizujWM1wogVUP1ev2wTY12bI25/wcJIxM0cRLS\r\n6fGLDZFo2ovIooocPTgoMQH+Bae/4a2Q3+x844/ZKb06kIiFWLusHZGXXz4H\r\n/LxgnQJnOsPkmHBZKc1zHEeTd44Pe9iGuwh62idEvrrfPCdl8T5Lj6KOMv98\r\nxyDkX0zXY9NU3w9KIcDGqueWhR/SIfR1HDL8iWHIkoV4O9GjCEIsic2USVmy\r\nd3eAtWVlkhjvYd6pg8L46XHKzaDbODuu0oVhCA2z2jkQS84AXdtx0YWicvS6\r\nxiNpYXP4vAblpg8q7VanxWOmBtje37tRNYedqlplOOsyEGO1t3Gia8HDqpw2\r\nZ+xEEiZ4Gf+9vlVYM4QOGJ/G0DZ7vw2GmSM=\r\n=qIPU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jlandrum","email":"me@jameslandrum.com"},"directories":{},"maintainers":[{"name":"jlandrum","email":"me@jameslandrum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.6.1_1662137074007_0.13161732436888673"},"_hasShrinkwrap":false},"0.6.1-ts":{"name":"@jlandrum/tokml","version":"0.6.1-ts","description":"convert geojson to kml; adds typescript definitions","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/jlandrum/tokml.git"},"keywords":["kml","geojson","geo","maps"],"types":"tokml.d.ts","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.6","rw":"^1.3.3"},"gitHead":"0358c413ce575575d5c2958cec594aae858c23e6","bugs":{"url":"https://github.com/jlandrum/tokml/issues"},"homepage":"https://github.com/jlandrum/tokml#readme","_id":"@jlandrum/tokml@0.6.1-ts","_nodeVersion":"14.19.2","_npmVersion":"8.14.0","dist":{"integrity":"sha512-I+S05LDhRxfZtEGBZj9iPRQcXjC1Oxm675otxcPUsi63OAkx3m9ZBQ6yKRSOoxjgiScJ8zbvL1sxosnL37NqVA==","shasum":"af4a853e85f28b55581037c833aac0c0c7b5db7c","tarball":"https://registry.npmjs.org/@jlandrum/tokml/-/tokml-0.6.1-ts.tgz","fileCount":101,"unpackedSize":67496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYMOWmw0CU36y6UFSSocGYMhCsl/gDs+L+z+crwoC0WAIgFuJ6Yrg02nc6ZM2up86GEwrx/uG6kd7qg9fpyUD+5uA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEjRaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq7Q/9HNLf4RgtMpiHxFvINurzkWWiCv9vlPgpCjCEtGXRp2bDWgyM\r\n70hWRjFIE6tBDWvpowccr/Ftly6H4KStMOf7+gABiASXBZ6PJf+8TQDwPetB\r\nCK9XILm4QH0nmG//3FTlU0evLKXOim5fesrM4j2bCwTLxpxmKmgsHIxxNXS0\r\n0h9UI+DmBqXtbOw+ehYvr4bcexcgHeRyGBbqzNW0Z2JghUNYQ+rTkgef4ZWf\r\n9+ku0E6rRzLZsJ0L0gQVK/1ETp+qvYhVBjrceDejyML7VYCr8Jk4PwxMV8wI\r\n0UJqocI1Zt5CNb+JHXF6FiaFRBpSet0L+pEL/aWXm/RoG/ZYJLfQ3ZhSuxEl\r\nLRZ5KnLJZ29y015ZRZVj/+D9O710jelzMjqGkyUIbeLK/uCi57LXS3LQ43be\r\n2SU3Hdyt6IBye09zJ7c/1nb5/ZjQ1Vo6HpSzbN0p69BROVOwMW31EU2uwwTd\r\n2JTSgNIkuVofwkR9zo9DDI1G8u8NlQG2ziiyd5wNAHBsG98swEmcNCNGrnpg\r\n9LUmZa23RbZiBpU4OS16cZMfIQXTmVh4GC9udvOMSpc4svaFIortAvNPiE2N\r\ngeL+SDUOnsBCjLdra8xDWAW/csr2wqRmILpmr9knwFFUrI2BgHcjC35kD2De\r\nQAKYJSud/pCRR1u0dAw+SnMZCurK65Ns0uE=\r\n=KK47\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jlandrum","email":"me@jameslandrum.com"},"directories":{},"maintainers":[{"name":"jlandrum","email":"me@jameslandrum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.6.1-ts_1662137434508_0.6789901797488362"},"_hasShrinkwrap":false},"0.6.1-ts2":{"name":"@jlandrum/tokml","version":"0.6.1-ts2","description":"convert geojson to kml; adds typescript definitions","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/jlandrum/tokml.git"},"keywords":["kml","geojson","geo","maps"],"types":"tokml.d.ts","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.6","rw":"^1.3.3"},"gitHead":"6ccdd8fe5f50e46e0f3e988abbaf8980d275eb19","bugs":{"url":"https://github.com/jlandrum/tokml/issues"},"homepage":"https://github.com/jlandrum/tokml#readme","_id":"@jlandrum/tokml@0.6.1-ts2","_nodeVersion":"14.19.2","_npmVersion":"8.14.0","dist":{"integrity":"sha512-eU2Mw9LcklvstxiylFCXaS9MycomYE+3i0RY4RbBnVaNFxOJ51GOHL2GxmRjI/HuZ00Bp+XQz8qiDFtXuiqPjg==","shasum":"56567de5794669553628784e1643acc9c6db0f10","tarball":"https://registry.npmjs.org/@jlandrum/tokml/-/tokml-0.6.1-ts2.tgz","fileCount":101,"unpackedSize":67485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDO7w3fizugzKxqwe5KmXOykIkd2bLvtolMKP3IzlZqjwIhAMLDssZQLygCvk9ZdUogSBbDr5r9/7nv2rZwa47Wkprp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEjnoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1QQ/9EVViUOeoBfEGSTdNzkbed7pWZ2rEaQ0aSTWXsoImeyEqfG4O\r\ne11cyWVBSKTT8RERVYSgf35DlrB16ElSwhD/gqINcfD0cEGyDU97QY8Ln8cF\r\noObtqWymsYAYudO+zhz4tRaeM/l+uP+aV/ZOO7+zebfBjr9SqRlozGFZyvW1\r\ndplfIdLGA/bpeuns8zVB6KvbOytrQ88iVQoU70LZfFxBGLzbBqS6CK+hrpMh\r\nLQ8i9hVnyddffSlHAaUUb5oqZks/6AwO6XMBbhexdRyEUnpj6SfLmv6m3qKl\r\nyGsgMwbz05yXTyZtpi2rsR2J10hYwY04WFP23zPuiqa60Yo87PZ/Z69CXiIG\r\nax6s9rFaELfD6eqEFdDS7uR0/Nk7FlszwMHbQKnFRw8UmFIuINcxGfUYFZ7F\r\ncHn6A1stKYkMRGcf0Tr7GcNqlzXQ9LGPVk2cNO61XlKQhD5FKlhLaOUiZS6F\r\n5gk3ZaY33X6+vmMTKtCC5U9FG667t2UXuG1dXy/ps6gSLl5QB74I5fjH3Hnl\r\nCaUq5Q7ZPZwWTn78UF4Hq++U+cClbEqTMQTeHemG6ymwUasK48t+pjVRtewn\r\nCDMHGlwUQCIFUkAVfwjBbTAY95lcuSE94W4P080Fr0OKcyRaLIsiKfWrINhJ\r\nkfSlHudhOwp3LLdvV6NFUHro6g6Xh7L6mbY=\r\n=yATT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jlandrum","email":"me@jameslandrum.com"},"directories":{},"maintainers":[{"name":"jlandrum","email":"me@jameslandrum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokml_0.6.1-ts2_1662138855844_0.8590948518248998"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-02T16:44:34.006Z","0.6.1":"2022-09-02T16:44:34.178Z","modified":"2022-09-02T17:14:16.135Z","0.6.1-ts":"2022-09-02T16:50:34.778Z","0.6.1-ts2":"2022-09-02T17:14:16.028Z"},"maintainers":[{"name":"jlandrum","email":"me@jameslandrum.com"}],"description":"convert geojson to kml; adds typescript definitions","homepage":"https://github.com/jlandrum/tokml#readme","keywords":["kml","geojson","geo","maps"],"repository":{"type":"git","url":"git+https://github.com/jlandrum/tokml.git"},"author":{"name":"Kristofor Carle"},"bugs":{"url":"https://github.com/jlandrum/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"}