osm-p2p-diff

0.0.2 • Public • Published

osm-p2p-diff

Generate a diff of OSM documents in two osm-p2p-db instances.

Writes, to standard out, all of the OSM documents that appear in the second DB that don't appear in the first, as newline-delimited JSON.

Can be used in conjunction with osm-p2p-append to merge two osm-p2p-db databases together.

CLI

  USAGE: osm-p2p-diff <LEVELDB-DIR> <LEVELDB-DIR>

Point this at two hyperlog leveldb directories. If you're working with an osm-p2p-db, this will be osm-dir/log.

API

var diff = require('osm-p2p-diff')

var readable = diff(log1, log2)

Accepts two hyperlog instances of two osm-p2p-dbs. Returns a Readable stream of newline-delimited JSON containing the documents that are in log2 but not log1.

Install

With npm installed, run

$ npm install osm-p2p-diff

See Also

License

ISC

/osm-p2p-diff/

    Package Sidebar

    Install

    npm i osm-p2p-diff

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • noffle