Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Implements a Node Transport Stream. Takes a readable stream of OSM XML and outputs a stream of JSON in the following format:
{
"attrs": {
"changeset": "50",
"id": "29",
"lat": "38.9003573",
"lon": "-77.0232578",
"timestamp": "2013-09-05T19:38:11Z",
"version": "1"
},
"tags": [
{
"k": "amenity",
"v": "place_of_worship"
}
],
"type": "node"
}
{
"type": "way",
"attrs": {
"id": "3",
"version": "3",
"timestamp": "2013-09-05T19:38:11Z",
"changeset": "49"
},
"nodes": [{
"ref": "19"
}, {
"ref": "20"
}, {
"ref": "21"
}, {
"ref": "22"
}, {
"ref": "26"
}, {
"ref": "27"
}],
"tags": [{
"k": "name",
"v": "York St"
}]
}
##Example
var fs = require('fs')
, Osm2Json = require('../lib/osm2json');
var rs = fs.createReadStream('./test.osm');
var osm2Json = new Osm2Json();
rs.pipe(osm2Json).pipe(process.stdout);
FAQs
Converts an OSM XML file to OSM JSON objects as a transform stream
We found that osm2json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.