{"name":"@maplibre/mlt","version":"1.2.1","keywords":["maplibre","gis","vector"],"license":"(MIT OR Apache-2.0)","_id":"@maplibre/mlt@1.2.1","maintainers":[{"name":"maplibreorg","email":"board@maplibre.org"},{"name":"wayofthefuture","email":"ryan@scully.biz"},{"name":"harelmazor","email":"harel.mazor@gmail.com"},{"name":"birkskyum","email":"birk.skyum@pm.me"},{"name":"mwilsnd","email":"mwilsnd@gmail.com"}],"homepage":"https://github.com/maplibre/maplibre-tile-spec/#readme","bugs":{"url":"https://github.com/maplibre/maplibre-tile-spec/issues"},"dist":{"shasum":"806cf5209178072a15e98b12e397ce9d723636ef","tarball":"http://registry-npm.ywwl.com/@maplibre/mlt/download/@maplibre/mlt-1.2.1.tgz","fileCount":258,"integrity":"sha512-5n5dgolE2EYxwCKgx8vlwURCB8A+kyfJJyThlYimjlGgOcOe2Bhw9VxxnnHC91OC9PgHg+nVdgVPTYPkIo62vg==","signatures":[{"sig":"MEYCIQCHT2mC4Q0H5pK19wADo/UKXKSlrn5Y3xPcYCgCDtwO8wIhAOAXXPorDD1YSlmGYE7scSG15GMceDBMctxGVH+jbwZI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCztvfsQN0pEhMjJ979XYPUMubTMg68gUpUGcNBTYwMeAIhAPrhOCNrZwEjimYY9U9yuFavkS+NjufLhaIWWUf7xtfj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@maplibre%2fmlt@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1255593,"size":211932,"noattachment":false,"key":"/@maplibre/mlt/-/@maplibre/mlt-1.2.1.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3c4c0c6e664155cc91e82aea757932e1071199ab","scripts":{"lint":"eslint","test":"vitest run --coverage","bench":"vitest bench --run src","build":"tsc","format":"biome format --write ./src","format:check":"biome format ./src"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:158679ba-cbc4-4d59-af2f-c75a5c94f5b0"}},"repository":{"url":"git+https://github.com/maplibre/maplibre-tile-spec.git","type":"git"},"_npmVersion":"11.6.2","description":"This package contains a JavaScript decoder for the experimental MapLibre Tile (MLT) vector tile format.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"@mapbox/point-geometry":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"pbf":"^5.1.2","earcut":"^3.2.3","eslint":"^10.9.1","vitest":"^4.0.1","@eslint/js":"^10.0.1","@types/pbf":"^3.0.5","bytebuffer":"^5.0.1","typescript":"^6.0.3","@types/node":"^26.4.1","@types/earcut":"^3.0.0","@biomejs/biome":"^2.5.11","@types/bytebuffer":"^5.0.49","typescript-eslint":"^8.69.0","@mapbox/vector-tile":"^3.0.0","@vitest/coverage-v8":"^4.1.11","@maplibre/maplibre-gl-style-spec":"^26.4.1"},"_npmOperationalInternal":{"tmp":"tmp/mlt_1.2.1_1788700939479_0.6198871374177211","host":"s3://npm-registry-packages-npm-production"},"readme":"# maplibre-tile-spec\n\nThis package contains a JavaScript encoder and decoder for the experimental MapLibre Tile (MLT) vector tile format.\n\n## Install\n\n`npm install @maplibre/mlt`\n\n## Quickstart\n\n### Decode a tile\n\n```js\nimport { decodeTile } from '@maplibre/mlt';\n\nconst data = fs.readFileSync(tilePath);\nconst tile = decodeTile(data);\n```\n\n### Encode a tile\n\n```ts\nimport { encodeTile, type Layer } from '@maplibre/mlt';\n\nconst layers: Layer[] = [\n    {\n        name: 'places',\n        features: [\n            {\n                id: 1,\n                geometry: { type: 'Point', coordinates: [10, 20] },\n                properties: { name: 'Example' },\n            },\n        ],\n    },\n];\n\nconst data = encodeTile(layers);\n```\n\n## Contents\n\n### Code\n\nCode is in `src/`.\n\n### Tests\n\nTests are in `test/unit/`. Run tests by running `npm run test`.\ncurrently not integrated\n","publish_time":1788700939574,"_cnpm_publish_time":1788700939574,"dist-tags":{"latest":"1.3.0","next":"0.0.1-alpha.12"}}