Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osmtogeojson

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osmtogeojson - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

osmtogeojson

4

osmtogeojson.js

@@ -10,3 +10,5 @@ try {

var result;
if ( data instanceof XMLDocument )
console.log(data.childNodes[0].tagName);
if ( ((typeof XMLDocument !== "undefined") && data instanceof XMLDocument ||
(typeof XMLDocument === "undefined") && data.childNodes) )
result = _osmXML2geoJSON(data);

@@ -13,0 +15,0 @@ else

{
"name": "osmtogeojson",
"version": "1.0.0",
"version": "1.1.0",
"description": "convert OSM to geojson",

@@ -9,2 +9,5 @@ "main": "osmtogeojson.js",

},
"bin": {
"osmtogeojson": "osmtogeojson"
},
"repository": {

@@ -24,3 +27,5 @@ "type": "git",

"dependencies": {
"lodash": "~2.2.0"
"lodash": "~2.2.0",
"xmldom": "~0.1.16",
"optimist": "~0.3.5"
},

@@ -27,0 +32,0 @@ "devDependencies": {

@@ -17,13 +17,18 @@ osmtogeojson

nodejs:
npm install osmtogeojson
var osm = require('osmtogeojson');
osm.toGeojson(xml_data);
browser:
<script src='osmtogeojson.js'></script>
osmtogeojson.toGeojson(xml_data);
* as a command line tool:
npm install -g osmtogeojson
$ osmtogeojson file.osm > file.geojson
* as a nodejs libary:
npm install osmtogeojson
var osm = require('osmtogeojson');
osm.toGeojson(xml_data);
* as a browser library:
<script src='osmtogeojson.js'></script>
osmtogeojson.toGeojson(xml_data);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc