Numerous Problems Multiplied
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    mapbox-gl-style-lintpublic

    This package has been deprecated

    Author message:

    This module is abandoned and no longer maintained. Use at your own risk.

    Mapbox GL Lint

    Build Status Coverage Status

    GL style spec and migration scripts for mapbox-gl-js and mapbox-gl-native.

    Install

    npm install -g mapbox-gl-style-lint
    

    Provides the utilities:

    • gl-style-migrate
    • gl-style-validate

    Validation

    $ gl-style-validate style.json

    Will validate the given style JSON and print errors to stdout. Provide a --json flag to get JSON output.

    API

    Migrations

    This repo contains scripts for migrating GL styles of any version to the latest version (currently v5). Migrate a style like this:

    $ gl-style-migrate bright-v0.json > bright-v5.json

    To migrate a file in place, you can use the sponge utility from the moreutils package:

    $ brew install moreutils
    $ gl-style-migrate bright.json | sponge bright.json

    Tests

    To run tests:

    npm install
    npm test
    

    To update test fixtures

    UPDATE=true npm test
    

    Keywords

    none

    install

    npm i mapbox-gl-style-lint

    Downloadsweekly downloads

    1

    version

    7.3.0

    license

    ISC

    homepage

    github.com

    last publish

    collaborators

    • avatar