A better scalebar for leaflet maps that is more GIS-like with alternating black/white bars.
npm install leaflet-betterscale
All that is required is to include the CSS, the JS and the following line of code:
``javascript``
var map = L.map('map').setView([30.182505,-93.318665], 12);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution:'© OpenStreetMap'
}).addTo(map);
L.control.betterscale().addTo(map);