mapbox-file-sniff
A Node module that detects the type of a spatial file and its protocol, such as shapefile, GPX, KML, GeoJSON or GeoTIFF. It is no longer actively maintained by Mapbox.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XNo license declared
Overview
mapbox-file-sniff is a Node module that detects the type of a spatial file and the protocol used to open it. Recognized types include zipped and unzipped shapefiles, GPX, KML, GeoJSON, GeoTIFF, mbtiles, TileJSON, serialtiles, tm2z and CSV. The protocols match those used by tilelive. You pass in a buffer or a file and get the type back. Mapbox states the repository is no longer actively maintained.
Key features
- Detects shapefile, GPX, KML, GeoJSON, GeoTIFF, CSV and more
- Also recognizes mbtiles, TileJSON, serialtiles and tm2z
- Returns a protocol name matching tilelive protocols
- fromBuffer() sniffs a file from a buffer
Best for
Node developers who accept uploaded spatial files and must decide how to process each one. It is no longer actively maintained by Mapbox.
- Upstream
- mapbox/mapbox-file-sniff
- Fork on GitHub
- Guo-astro/mapbox-file-sniff
- Upstream stars
- 14
- Category
- Maps and geospatial
- Language
- JavaScript
- License
- No license declaredWithout a license, the author keeps all rights. Ask the upstream owner before reusing the code.
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-11-09
More in Maps and geospatial
An interactive atlas for exploring Chinese history from 403 BCE to the present. Move through historical periods to see territorial changes, locate places, and connect them with historical events and poetry.
Forked 2026-10-21Last synced 2026-10-25License: GPL-3.0Maps and geospatialGitHub
A Go terminal map viewer and journey planner for recorded activities and planned routes. Inspect tracks, elevation, and playback offline, or use Mapbox for place search and road routing.
Forked 2026-10-19Last synced 2026-11-09License: MITMaps and geospatialGitHub
GeoLibre is a GIS for visualizing and analyzing geospatial data across browser, desktop, mobile, and notebooks. It keeps work local with browser geoprocessing tools.
Forked 2026-10-07Last synced 2026-11-09License: MITMaps and geospatialGitHub
An open source command line toolkit that turns drone, balloon or kite photos into maps, point clouds, 3D models and elevation models. Used for aerial mapping and surveying.
Forked 2026-06-09Last synced 2026-11-09License: AGPL-3.0Maps and geospatialGitHub