4.8.0 • Published 3 years ago
@mapbox/mapbox-upload-validate v4.8.0
mapbox-upload-validate
Validate that a file can be uploaded to Mapbox
Install
$ npm install -g @mapbox/mapbox-upload-validate
Configuration
By default file metadata has a 60.0Kb limit. You can override this value with the LIMITS_MAX_METADATA
environment variable. See https://github.com/mapbox/mapbox-upload-limits for additional configuration.
Usage
$ mapbox-upload-validate /path/to/data/file
Where /path/to/data/file
is the path to a file.
There are three possible results:
- Valid: process exit 0 and logs the file's path to stdout
- Invalid: process exit 3, nothing is logged to stdout, and a validation error is printed to stderr
- Unexpected: something unexpected happened and we could not confirm whether or not the file is valid. Process exit 1 with nothing printed to stdout and an error message printed to stderr
The following types of files are supported for upload to Mapbox.com:
- Mbtiles
- GeoTIFF
- Zipped Shapefile
- GeoJSON
- TopoJSON
- GPX
- KML
- TileJSON
- tm2z
- Serialtiles
Run tests
Setup your environment with some variables:
MapboxAccessToken
: for access to mapbox.com
Then
npm test
4.8.0
3 years ago
4.7.1-dev1
3 years ago
4.7.0
3 years ago
4.7.0-dev1
3 years ago
4.6.0
4 years ago
4.6.0-dev2
4 years ago
4.6.0-dev1
4 years ago
4.5.0
4 years ago
4.5.0-dev1
4 years ago
4.4.0
4 years ago
4.4.0-dev1
4 years ago
4.3.0-devtest
4 years ago
4.3.0
5 years ago
4.2.0
5 years ago
4.1.1-dev
6 years ago
1.0.0
6 years ago
4.1.0
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.12.0
6 years ago
3.11.0
7 years ago
3.10.1
7 years ago
3.10.0
7 years ago
3.9.0
7 years ago
3.8.0
7 years ago
3.7.2
7 years ago