Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
osm-p2p-server
Advanced tools
serve open street map 0.6 api endpoints over a local p2p http server
var level = require('level')
var hyperlog = require('hyperlog')
var fdstore = require('fd-chunk-store')
var db = {
log: level('/tmp/osm-p2p/log'),
index: level('/tmp/osm-p2p/index')
}
var osmdb = require('osm-p2p-db')
var osm = osmdb({
log: hyperlog(db.log, { valueEncoding: 'json' }),
db: db.index,
store: fdstore(4096, '/tmp/osm-p2p/tree'),
size: 4096
})
var osmrouter = require('osm-p2p-server')
var router = osmrouter(osm)
var http = require('http')
var server = http.createServer(function (req, res) {
if (router.handle(req, res)) {}
else {
res.statusCode = 404
res.end('not found\n')
}
})
server.listen(5000)
var osmrouter = require('osm-p2p-server')
Create a new open street maps server router
given an
osm-p2p-db handle osm
.
Return a match object m
if method
and url
can be handled by the server.
Match the req.method
and req.url
and dispatch m.fn(m, req, res)
and return
the match object if there is a match.
npm install osm-p2p-server
BSD
FAQs
Peer-to-peer OpenStreetMap API v0.6 Server
The npm package osm-p2p-server receives a total of 62 weekly downloads. As such, osm-p2p-server popularity was classified as not popular.
We found that osm-p2p-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.