Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
gpx-builder
Advanced tools
This library creates GPX files based on version 1.1. I recommend you to check full documentation on topografix. Library have also option to use Garmin extensions so you can add cadence, heart rate, speed and other data to your points.
Install:
npm install gpx-builder
Create your first GPX file:
const { buildGPX, GarminBuilder } = require('gpx-builder');
const { Point } = GarminBuilder.MODELS;
const points = [
new Point(51.02832496166229, 15.515156626701355, {
ele: 314.715,
time: new Date('2018-06-10T17:29:35Z'),
hr: 120,
}),
new Point(51.12832496166229, 15.615156626701355, {
ele: 314.715,
time: new Date('2018-06-10T17:39:35Z'),
hr: 121,
}),
];
const gpxData = new GarminBuilder();
gpxData.setSegmentPoints(points);
console.log(buildGPX(gpxData.toObject()));
Library contain two types of classes:
Library contain two Builders:
FAQs
Builder of GPX files
The npm package gpx-builder receives a total of 3,576 weekly downloads. As such, gpx-builder popularity was classified as popular.
We found that gpx-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.