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 2.0.4 to 2.0.5

test-cli/cli.test.js

6

CHANGELOG.md

@@ -1,3 +0,7 @@

2.0.3
2.0.5
-----
* support input files larger than 256 MB. #17
2.0.4
-----
* fix unresolved xml entities in command line mode

@@ -4,0 +8,0 @@

14

package.json
{
"name": "osmtogeojson",
"version": "2.0.4",
"version": "2.0.5",
"description": "convert OSM to geojson",
"main": "index.js",
"scripts": {
"test": "mocha -R spec"
"pretest": "npm ls --depth=Infinity > /dev/null",
"test": "npm run test-lib && npm run test-cli",
"test-lib": "mocha -R spec",
"test-cli": "node test-cli/cli.test.js | faucet"
},

@@ -30,7 +33,10 @@ "bin": {

"concat-stream": "~1.0.1",
"htmlparser2": "3.5.1"
"htmlparser2": "3.5.1",
"JSONStream": "0.8.0"
},
"devDependencies": {
"expect.js": "~0.2.0",
"mocha": "~1.12.0"
"mocha": "~1.12.0",
"tape": "~2.10.2",
"faucet": "~0.0.1"
},

@@ -37,0 +43,0 @@ "engines": {

@@ -40,2 +40,7 @@ /* converts OSM XML to OSM JSON using a fast streaming parser */

module.exports = function(xml_str) { p.write(xml_str); p.end(); return json; }
p.parseFromString = function(xml_str) { p.write(xml_str); p.end(); return json; }
p.getJSON = function() {
return json;
}
module.exports = p;

@@ -19,3 +19,3 @@ osmtogeojson

* as a command line tool:
* as a **command line tool**:

@@ -25,4 +25,8 @@ $ npm install -g osmtogeojson

* as a nodejs library:
When working with extra large data files (≳ 100 MB) it is recommended to run the programm with a little extra memory to avoid *process out of memory* errors. The easiest way to do this is by running the command as `node <path-to-osmtogeojson>` and setting the `--max_old_space_size=…` parameter to the available memory size in MB (osmtogeojson typically needs about 4-5 times the input data size):
$ node --max_old_space_size=8192 `which osmtogeojson` large.osm > large.geojson
* as a **nodejs library**:
$ npm install osmtogeojson

@@ -33,3 +37,3 @@

* as a browser library:
* as a **browser library**:

@@ -36,0 +40,0 @@ <script src='osmtogeojson.js'></script>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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