
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
osmreplication
Advanced tools
Easy way to convert date to number of [Planet.osm/diffs](http://wiki.openstreetmap.org/wiki/Planet.osm/diffs), the app support `timestamp` and `date(YYYY-MM-DDThh:mm:ss)` parameters.
Easy way to convert date to number of Planet.osm/diffs, the app support timestamp and date(YYYY-MM-DDThh:mm:ss) parameters.
npm install osmreplication
There are problems with file replication per minute, sometimes falls server replication and sequence files are lost, which is why we need to update the files before using. the upgrade take the last date of the update and start updating the latest incidents. This could take the around of 20sec, 1min depending on how old the last update.
the last incidence on the replication server was 2016-02-01 19:1
npm run update
var osmreplication = require('osmreplication');
var timestamp = 1453943167;
var date = '2016-01-28T01:06:07';
File:
osmreplication.file(timestamp,'minute');
//or
osmreplication.file(date,'minute');
Output:
{
url_data: 'http://planet.openstreetmap.org/replication/minute/001/766/587.osc.gz',
sequenceNumber: 1766587,
date: '2016-01-27T01:06'
}
Range:
var dateStart = '2012-09-13T02:01';
var dateEnd = '2012-09-13T02:03';
var result = osmreplication.range(dateStart, dateEnd, 'minute');
Output:
[{
url_data: 'http://planet.openstreetmap.org/replication/minute/000/000/996.osc.gz',
sequenceNumber: 996,
date: '2012-09-12T02:01'
}, {
url_data: 'http://planet.openstreetmap.org/replication/minute/000/000/997.osc.gz',
sequenceNumber: 997,
date: '2012-09-12T02:02'
}, {
url_data: 'http://planet.openstreetmap.org/replication/minute/000/000/998.osc.gz',
sequenceNumber: 998,
date: '2012-09-12T02:03'
}]
File:
osmreplication.file(timestamp,'hour');
//or
osmreplication.file(date,'hour');
Output:
{
url_data: 'http://planet.openstreetmap.org/replication/hour/000/029/586.osc.gz',
sequenceNumber: 29586,
date: '2016-01-27T01:05'
}
Range:
var dateStart = '2016-02-05T16:02';
var dateEnd = '2016-02-05T18:02';
var result = osmreplication.range(dateStart, dateEnd, 'hour');
Output:
[{
url_data: 'http://planet.openstreetmap.org/replication/hour/000/029/793.osc.gz',
sequenceNumber: 29793,
date: '2016-02-05T16:01'
}, {
url_data: 'http://planet.openstreetmap.org/replication/hour/000/029/794.osc.gz',
sequenceNumber: 29794,
date: '2016-02-05T17:01'
}, {
url_data: 'http://planet.openstreetmap.org/replication/hour/000/029/795.osc.gz',
sequenceNumber: 29795,
date: '2016-02-05T18:01'
}]
File:
osmreplication.file(timestamp,'day');
//or
osmreplication.file(date,'day');
Output:
{
url_data: 'http://planet.openstreetmap.org/replication/day/000/001/233.osc.gz',
sequenceNumber: 1233,
date: '2016-01-27T01:05'
}
Range:
var dateStart = '2016-02-27T00:06';
var dateEnd = '2016-02-29T00:06';
var result = osmreplication.range(dateStart, dateEnd, 'day');
Output:
[{
url_data: 'http://planet.openstreetmap.org/replication/day/000/001/263.osc.gz',
sequenceNumber: 1263,
date: '2016-02-26T00:05'
}, {
url_data: 'http://planet.openstreetmap.org/replication/day/000/001/264.osc.gz',
sequenceNumber: 1264,
date: '2016-02-27T00:05'
}, {
url_data: 'http://planet.openstreetmap.org/replication/day/000/001/265.osc.gz',
sequenceNumber: 1265,
date: '2016-02-28T00:05'
}]
npm install & npm test
FAQs
Easy way to convert date to number of [Planet.osm/diffs](http://wiki.openstreetmap.org/wiki/Planet.osm/diffs), the app support `timestamp` and `date(YYYY-MM-DDThh:mm:ss)` parameters.
The npm package osmreplication receives a total of 2 weekly downloads. As such, osmreplication popularity was classified as not popular.
We found that osmreplication 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.