{"name":"@maplibre/mlt","version":"1.1.0","keywords":["maplibre","gis","vector"],"license":"(MIT OR Apache-2.0)","_id":"@maplibre/mlt@1.1.0","maintainers":[{"name":"maplibreorg","email":"board@maplibre.org"}],"homepage":"https://github.com/maplibre/maplibre-tile-spec/#readme","bugs":{"url":"https://github.com/maplibre/maplibre-tile-spec/issues"},"dist":{"shasum":"c73c6b466a784b447fec594d947f127b618b090c","tarball":"http://registry-npm.ywwl.com/@maplibre/mlt/download/@maplibre/mlt-1.1.0.tgz","fileCount":221,"integrity":"sha512-anR8WxKIgZUJQLlZtID0v06wd9Q//9K/6lLLU3dOzmeO/xLEzAwmEqP24jEnEUBcnZGkM4vidz9H6Q4guNAAlw==","signatures":[{"sig":"MEUCIQC30g2g6CxiL+Zz07vw/VHuGEhOEvkuHqYRjVqua/ha2wIgGpqOtokcbaSt7zOur6RaLPha3/ba0LKJPuUb8ukKYV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":533411,"size":82221,"noattachment":false,"key":"/@maplibre/mlt/-/@maplibre/mlt-1.1.0.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0e5af6676b2ccafb47d921abab3e6b4437766521","scripts":{"lint":"eslint","test":"vitest run --coverage --coverage.reportOnFailure","build":"tsc","format":"prettier --write \"**/*.ts\""},"_npmUser":{"name":"maplibreorg","email":"board@maplibre.org"},"repository":{"url":"git+https://github.com/maplibre/maplibre-tile-spec.git","type":"git"},"_npmVersion":"10.9.2","description":"This package contains a JavaScript decoder for the experimental MapLibre Tile (MLT) vector tile format.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"@mapbox/point-geometry":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"pbf":"^4.0.1","earcut":"^3.0.2","eslint":"^9.39.1","varint":"^6.0.0","vitest":"^4.0.1","prettier":"^3.6.2","@types/pbf":"^3.0.5","bytebuffer":"^5.0.1","typescript":"^5.9.3","@types/node":"^24.10.0","@types/earcut":"^3.0.0","@types/varint":"^6.0.3","@types/bytebuffer":"^5.0.49","typescript-eslint":"^8.46.3","@mapbox/vector-tile":"^2.0.4","@vitest/coverage-v8":"^4.0.7","@maplibre/maplibre-gl-style-spec":"^24.3.1"},"_npmOperationalInternal":{"tmp":"tmp/mlt_1.1.0_1762512327824_0.8784705999799391","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":1762512328007,"_cnpm_publish_time":1762512328007,"dist-tags":{"latest":"1.3.0","next":"0.0.1-alpha.12"}}