Installations
npm install osm-p2p-import
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.9.5
NPM Version
3.10.10
Score
43.4
Supply Chain
49.8
Quality
63.1
Maintenance
50
Vulnerability
75
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
noffle
Download Statistics
Total Downloads
2,268
Last Day
1
Last Week
8
Last Month
30
Last Year
154
GitHub Statistics
4 Stars
53 Commits
1 Forks
2 Watching
2 Branches
2 Contributors
Bundle Size
51.20 kB
Minified
15.75 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.0.4
Package Id
osm-p2p-import@3.0.4
Size
165.80 kB
NPM Version
3.10.10
Node Version
6.9.5
Total Downloads
Cumulative downloads
Total Downloads
2,268
Last day
0%
1
Compared to previous day
Last week
-50%
8
Compared to previous week
Last month
200%
30
Compared to previous month
Last year
3.4%
154
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
osm-p2p-import
Node.JS module and command line utility for importing OSM XML into an osm-p2p-db.
CLI Usage
USAGE: osm-p2p-import DBDIR [XMLFILE]
Import OSM XML into an osm-p2p-db located at DBDIR. XMLFILE is a file
containing OSM XML. If not specified, OSM XML is read from standard input.
Module Usage
1var importer = require('osm-p2p-import') 2var OsmP2P = require('osm-p2p') 3var fs = require('fs') 4 5var xml = fs.createReadStream('./hawaii.xml') 6 7var osm = OsmP2P('./fun.db') 8 9importer(osm, xml, function (err) { 10 console.log(err ? err : 'import done!') 11 12 // OPTIONAL: wait for indexes to be generated 13 var osmdb = require('osm-p2p') 14 var osm = osmdb(dbPath) 15 osm.ready(function () { 16 console.log('indexes generated') 17 }) 18})
outputs
done!
indexes generated
API
1var importer = require('osm-p2p-import')
importer(osm, xmlStream[, opts], done)
osm
: osm-p2p-db instancexmlStream
: a readable stream of OSM XML data.opts
: options object. Currently acceptsslow: true|false
.done
: a callback function, receiving an errorerr
ornull
.
XML Formatting
Anything that would be an acceptable upload to OSM v0.6's POST /api/0.6/changeset/:id/upload
should work here.
Install
With npm installed, run
Module
$ npm install osm-p2p-import
Command Line Utility
$ npm install --global osm-p2p-import
License
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More