{"_id":"@maplibre/mlt@1.3.0","bugs":{"url":"https://github.com/maplibre/maplibre-tile-spec/issues"},"dist":{"shasum":"3a9467d12a0b6edfcdba429dd3a260ca48f11129","tarball":"http://registry-npm.ywwl.com/@maplibre/mlt/download/@maplibre/mlt-1.3.0.tgz","fileCount":258,"integrity":"sha512-7M2O7ABM80Oi8XPkfkrjKB8mOBIxGoVgkA52Mu4RMWoBvvMdagQ522+WxVYujZsMpqIr3BpzrTbXrm4k8lCzCQ==","signatures":[{"sig":"MEYCIQD4xAao0W3XWlEFL13+iaqWNYVtF1Oaq9zUCvoCcmbVnwIhALTHRDR7klDLiUtnQditp2oKG37Xfi37E8+5joHxejgU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDfM3pgErextvJBr7Ft4rt0LAAq/AdwziGiaBfrDo9+3AiEA7ESavBEEd9hUSmOH30akOjRYF+9PqDSnS67xSlgioFQ="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@maplibre%2fmlt@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1256616,"size":212211,"noattachment":false,"key":"/@maplibre/mlt/-/@maplibre/mlt-1.3.0.tgz"},"main":"dist/index.js","name":"@maplibre/mlt","types":"dist/index.d.ts","gitHead":"69cab21f6d3907f56b67c2b37d5c10c348e31523","license":"(MIT OR Apache-2.0)","scripts":{"lint":"eslint","test":"vitest run --coverage","bench":"vitest bench --run src","build":"tsc","format":"biome format --write ./src","format:check":"biome format ./src"},"version":"1.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:158679ba-cbc4-4d59-af2f-c75a5c94f5b0"}},"homepage":"https://github.com/maplibre/maplibre-tile-spec/#readme","keywords":["maplibre","gis","vector"],"repository":{"url":"git+https://github.com/maplibre/maplibre-tile-spec.git","type":"git"},"_npmVersion":"11.6.2","description":"This package contains a JavaScript encoder and decoder for the experimental MapLibre Tile (MLT) vector tile format.","directories":{},"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"}],"_nodeVersion":"24.11.1","dependencies":{"@mapbox/point-geometry":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"pbf":"^5.1.2","earcut":"^3.2.3","eslint":"^10.10.0","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.5.0","@types/earcut":"^3.0.0","@biomejs/biome":"^2.5.12","@types/bytebuffer":"^5.0.49","typescript-eslint":"^8.70.0","@mapbox/vector-tile":"^3.0.0","@vitest/coverage-v8":"^4.1.11","@maplibre/maplibre-gl-style-spec":"^26.4.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mlt_1.3.0_1789234032484_0.3529140440973133"},"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":1789234032571,"_cnpm_publish_time":1789234032571,"dist-tags":{"latest":"1.3.0","next":"0.0.1-alpha.12"}}