{"name":"@maplibre/maplibre-gl-style-spec","version":"24.2.0","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js"],"author":{"name":"MapLibre"},"license":"ISC","_id":"@maplibre/maplibre-gl-style-spec@24.2.0","maintainers":[{"name":"maplibreorg","email":"board@maplibre.org"},{"name":"harelmazor","email":"harel.mazor@gmail.com"},{"name":"birkskyum","email":"birk.skyum@pm.me"},{"name":"mwilsnd","email":"mwilsnd@gmail.com"}],"homepage":"https://maplibre.org/maplibre-style-spec/","bugs":{"url":"https://github.com/maplibre/maplibre-gl-style-spec/issues"},"bin":{"gl-style-format":"dist/gl-style-format.mjs","gl-style-migrate":"dist/gl-style-migrate.mjs","gl-style-validate":"dist/gl-style-validate.mjs"},"dist":{"shasum":"6d82ff1984a3f7ca8d66a744283e0ccbf6cb3ac3","tarball":"http://registry-npm.ywwl.com/@maplibre/maplibre-gl-style-spec/download/@maplibre/maplibre-gl-style-spec-24.2.0.tgz","fileCount":183,"integrity":"sha512-cE80g83fRcBbZbQC70siOUxUK6YJ/5ZkClDZbmm+hzrUbv+J6yntkMmcpdz9DbOrWOM7FHKR5rruc6Q/hWx5cA==","signatures":[{"sig":"MEQCIDijwjAmr4gf/szz8LgGVc7YyOp0FBP0pR4flPhYkcNAAiAtEY6d46PEATnPWARrt+i3dPRcf4u2iadlsF2PGtF4VQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9566506,"size":1276957,"noattachment":false,"key":"/@maplibre/maplibre-gl-style-spec/-/@maplibre/maplibre-gl-style-spec-24.2.0.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"1768c7b069bdbc721a2eb98d7180ee1bffe04c64","scripts":{"lint":"eslint","test":"vitest","build":"rollup --configPlugin @rollup/plugin-typescript -c rollup.config.ts && cp ./src/reference/v8.json ./dist/latest.json","mkdocs":"docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material","compile":"tsc","prepare":"npm run generate-style-spec","test-unit":"vitest run --config vitest.config.unit.ts","typecheck":"tsc --noEmit","test-build":"vitest run --config vitest.config.build.ts","mkdocs-build":"npm run generate-docs && docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build --strict","test-unit-ci":"vitest run --config vitest.config.unit.ts --coverage","generate-docs":"node ${WATCH+--watch} --no-warnings --loader ts-node/esm build/generate-docs.ts","test-build-ci":"vitest run --config vitest.config.build.ts --coverage","generate-typings":"dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts","test-integration":"vitest run --config vitest.config.integration.ts","test-watch-roots":"vitest --config vitest.config.unit.ts --watch","generate-style-spec":"node --no-warnings --loader ts-node/esm build/generate-style-spec.ts","test-integration-ci":"vitest run --config vitest.config.integration.ts --coverage"},"_npmUser":{"name":"maplibreorg","email":"board@maplibre.org"},"repository":{"url":"git+ssh://git@github.com/maplibre/maplibre-gl-style-spec.git","type":"git"},"_npmVersion":"10.9.3","description":"a specification for maplibre styles","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"rw":"^1.3.3","minimist":"^1.2.8","tinyqueue":"^3.0.0","quickselect":"^3.0.0","@mapbox/unitbezier":"^0.0.1","json-stringify-pretty-compact":"^4.0.0","@mapbox/jsonlint-lines-primitives":"~2.0.2"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^11.0.3","tslib":"^2.8.1","eslint":"^9.36.0","rollup":"^4.52.0","semver":"^7.7.2","vitest":"3.2.4","globals":"^16.4.0","ts-node":"^10.9.2","@vitest/ui":"3.2.4","typescript":"^5.9.2","@types/node":"^24.5.2","@types/eslint":"^9.6.1","@types/geojson":"^7946.0.16","@rollup/plugin-json":"^6.1.0","@vitest/coverage-v8":"3.2.4","eslint-plugin-jsdoc":"^60.1.0","@rollup/plugin-strip":"^3.0.4","dts-bundle-generator":"^9.5.1","@rollup/plugin-terser":"^0.4.4","@vitest/eslint-plugin":"^1.3.12","@rollup/plugin-replace":"^6.0.2","@rollup/plugin-commonjs":"^28.0.6","@stylistic/eslint-plugin":"^5.4.0","@rollup/plugin-typescript":"^12.1.4","@typescript-eslint/parser":"^8.42.0","@rollup/plugin-node-resolve":"^16.0.1","rollup-plugin-preserve-shebang":"^1.0.1","@typescript-eslint/eslint-plugin":"^8.44.0"},"_npmOperationalInternal":{"tmp":"tmp/maplibre-gl-style-spec_24.2.0_1758971362812_0.8465924903894706","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <img src=\"https://github.com/user-attachments/assets/7ff2cda8-f564-4e70-a971-d34152f969f0#gh-light-mode-only\" alt=\"MapLibre Logo\" width=\"200\">\n  <img src=\"https://github.com/user-attachments/assets/cee8376b-9812-40ff-91c6-2d53f9581b83#gh-dark-mode-only\" alt=\"MapLibre Logo\" width=\"200\">\n</p>\n\n# MapLibre Style Specification & Utilities\n\n[![NPM Version](https://badge.fury.io/js/@maplibre%2Fmaplibre-gl-style-spec.svg)](https://npmjs.org/package/@maplibre/maplibre-gl-style-spec)\n[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg?style=flat)](LICENSE.txt) [![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://opensource.org/licenses/BSD-3-Clause) [![codecov](https://codecov.io/gh/maplibre/maplibre-style-spec/branch/main/graph/badge.svg)](https://codecov.io/gh/maplibre/maplibre-style-spec)\n\nThis repository contains code and reference files that define the MapLibre style specification and provides some utilities for working with MapLibre styles.\n\nThe style specification is used in MapLibre GL JS and in MapLibre Native. Our long-term goal is to have feature parity between the web and the native libraries.\n\n## Contributing\n\nIf you want to contribute to the style specification, please open an issue with a design proposal. Once your design proposal has been accepted, you can open a pull request and implement your changes.\n\nWe aim to avoid breaking changes in the MapLibre style specification because it makes life easier for our users.\n\n## Documentation\n\nThe [documentation](https://maplibre.org/maplibre-style-spec) of the style specification also lives in this repository.\nWe use [Zensical](https://www.zensical.org/).\n\nTo work on the documentation locally, you need to start Zensical. When you have Docker installed and running, you can use:\n\n```bash\nnpm run start-docs\n```\n\nAlternatively, if you have [uv](https://docs.astral.sh/uv/) installed, you can use:\n\n```bash\nuvx zensical serve --open\n```\n\nMost of the documentation is generated (from e.g. `v8.json`).\nIn another terminal, run:\n\n```bash\nnpm install\nWATCH=1 npm run generate-docs\n```\n\nThis will re-run the generation script when needed.\n\nNote that generated files should not be checked in, and they are excluded in `.gitignore`.\nMake sure to keep this file up to date and ignore generated files while making sure static Markdown files are not ignored.\n\n## NPM Package\n\n\nThe MapLibre style specification and utilities are published as a separate npm\npackage so that they can be installed without the bulk of GL JS.\n\n```bash\nnpm install @maplibre/maplibre-gl-style-spec\n```\n\n## CLI Tools\n\nIf you install this package globally, you will have access to several CLI tools.\n\n```bash\nnpm install @maplibre/maplibre-gl-style-spec --global\n```\n\n### `gl-style-migrate`\n\nThis repo contains scripts for migrating GL styles of any version to the latest version (currently v8).\nYou can migrate a style like this:\n\n```bash\ngl-style-migrate bright-v7.json > bright-v8.json\n```\n\nTo migrate a file in place, you can use the `sponge` utility from the `moreutils` package:\n\n```bash\nbrew install moreutils\ngl-style-migrate bright.json | sponge bright.json\n```\n\n### `gl-style-format`\n\n```bash\ngl-style-format style.json\n```\n\nWill format the given style JSON to use standard indentation and sorted object keys.\n\n### `gl-style-validate`\n\n```bash\ngl-style-validate style.json\n```\n\nWill validate the given style JSON and print errors to stdout.\nProvide a `--json` flag to get JSON output.\n","publish_time":1758971363193,"_cnpm_publish_time":1758971363193,"dist-tags":{"latest":"26.5.1","next":"18.0.1-pre.15"}}