New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tokml

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tokml

convert geojson to kml

0.1.0
Source
npm
Version published
Weekly downloads
4.8K
-13.95%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

tokml

Convert GeoJSON to KML.

Usage

with node/browserify

npm install --save tokml

otherwise:

wget https://raw.github.com/mapbox/tokml/master/tokml.js

as a binary:

npm install -g tokml
tokml file.geojson > file.kml
tokml < file.geojson > file.kml

Example

var kml = tokml(geojsonObject);

API

tokml(geojsonObject)

Given GeoJSON data as an object, return KML data as a string of XML.

Development

Requires node.js and browserify:

To build tokml.js:

make

To run tests:

npm install
npm test

Keywords

kml

FAQs

Package last updated on 08 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts