
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Extends Leaflet Routing Machine with support for Mapbox's directions API.
Some brief instructions follow below, but the Leaflet Routing Machine tutorial on alternative routers is recommended.
Go to the download page to get the script to include in your page. Put the script after Leaflet and Leaflet Routing Machine has been loaded.
To use with for example Browserify:
npm install --save lrm-mapbox
There's a single class exported by this module, L.Routing.Mapbox. It implements the IRouter interface. Use it to replace Leaflet Routing Machine's default OSRM router implementation:
var L = require('leaflet');
require('leaflet-routing-machine');
require('lrm-mapbox'); // This will tack on the class to the L.Routing namespace
L.Routing.control({
router: new L.Routing.Mapbox('your mapbox access token'),
}).addTo(map);
Note that you will need to pass a valid Mapbox access token to the constructor.
FAQs
Support for Mapbox directions API in Leaflet Routing Machine
The npm package lrm-mapbox receives a total of 41 weekly downloads. As such, lrm-mapbox popularity was classified as not popular.
We found that lrm-mapbox 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.