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.
osm-p2p-defork
Advanced tools
Convert forking osm-p2p documents into a linear history.
Transforms a list of osm-p2p-db documents into a sublist with a linear (non-forking) history.
var defork = require('osm-p2p-defork')
osm.query([[-90, 90], [-180, 180]], function (err, docs) {
docs = defork(docs)
console.log(docs)
})
outputs the results from the osm.query()
, but with a linear history (no forked
documents).
var defork = require('osm-p2p-defork')
Consumes a list of OSM documents, formatted as would be returned by
osm-p2p-db
's query
function.
Returns the same documents, but with certain documents filtered to present a linear history.
Timestamps (a timestamp
field) should be present on all documents. If they
aren't, sorting happens based on the document's version
field. This guarantees
a non-forking history, but it will not likely be semantically what you want.
With npm installed, run
$ npm install osm-p2p-defork
ISC
FAQs
convert forking osm-p2p documents into a linear history
We found that osm-p2p-defork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.