
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
osm-meta-util
Advanced tools
A tool to download and process OSM Metadata. This data contains the most recent annotations around a commit to OSM. Specifically, commit text
, username
, bounding box
, creation date
and number of edits
. The data is downloaded from the planet repository, which contains minutely changesets to OSM.
Once installed the tool can be used to pipe in compressed XML data between two dates and output it in JSON. OSM Meta Util can also be used in polling mode and continuously download the latest data every minute.
A joint project built by Development Seed and the American Red Cross.
Clone the repo or download it as a zip. npm install
the dependencies.
Require osm-meta-util
in your node app.
var MetaUtil = require('osm-meta-util');
The MetaUtil
constructor builds a Node Stream, so you can pipe it into stream transformers or into process.stdout
There are a few ways of using the utility:
The files are named in numerical order since February 28th, 2012. They're incremented every minute. You need the file name related to the start and end date. For example, 001181708
refers to http://planet.osm.org/replication/changesets/001/181/708.osm.gz, created on 2015-02-10 20:56
.
var MetaUtil = require('osm-meta-util');
// Getting historical metadata, specify a start & end
var meta = MetaUtil({
'delay': 1000,
'start': '001181708', //2015-02-10 20:56
'end': '001181721' //2015-02-10 21:09
}).pipe(process.stdout)
// Live Mode! Updates every minute
var meta = MetaUtil().pipe(process.stdout)
MetaUtil({
'start': process.argv[2],
'end': process.argv[3],
'delay': process.argv[4]
}).pipe(process.stdout)
Use it in combination with jq
node app 001181708 001181721 1000 | jq -c '{user:.user, date: .closed_at}'
FAQs
A tool to download OSM metadata
We found that osm-meta-util 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.