@loaders.gl/kml module supports the KML format.
KML (Keyhole Markup Language) is an XML-based file format used to display geographic data in an Earth browser such as Google Earth (originally named "Keyhole Earth Viewer"). It can be used with any 2D or 3D maps.
npm install @loaders.gl/core @loaders.gl/kml
XMLLoader is an adaptation of Nick Blackwell's
js-simplekml module under MIT license.