0.0.2 • Published 8 years ago
osm-p2p-diff v0.0.2
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-db
s. 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