mapbox / mapbox-upload-validate

Validate that files can be uploaded to mapbox.com
ISC License
5 stars 7 forks source link

Build Status Coverage Status

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:

The following types of files are supported for upload to Mapbox.com:

Run tests

Setup your environment with some variables:

Then

npm test