
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
osm-comments-notes-parser
Advanced tools
Parses through OSM changeset discussion and notes files and puts them into a postgres db
Reads XML files and saves into database.
Run npm install
Setup database:
createdb <db_name>
psql <db_name> < create_tables.sql
Setup environment variables required for the project:
export OSM_COMMENTS_POSTGRES_URL='postgres://<username>@localhost/osm-comments'
export OSM_COMMENTS_TEST_POSTGRES_URL='postgres://username@localhost/osm-comments-test'
In a node shell:
var notesParser = require('./notes');
notesParser({filename: '/path/to/notes-xml'});
var changesetParser = require('./changesets');
changesetParser({filename: '/path/to/changeset-xml'});
From the terminal:
node index.js <notes|changesets> --filename=/path/to/xml/file
Run npm test
When starting out with an empty database, there is an optimized way to load the initial backlog of changesets. Create an empty folder called csv
in the project root and pass the option: initial=true
changesetParser. After this command is run, run psql <db_name> < changesets/post_initial.sql
to load the CSVs into the database. FIXME: this should be scripted.
FAQs
Parses through OSM changeset discussion and notes files and puts them into a postgres db
We found that osm-comments-notes-parser 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
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.