# polytini > Encode and decode Google encoded polylines in JavaScript and TypeScript. The package is `@duoquote/polytini` on npm and JSR. It's strict by default, has no dependencies, picks a build per runtime (Node, Bun, Deno, browsers, Cloudflare Workers), and has presets for OSRM, Valhalla, GraphHopper and Mapbox, adapters for Leaflet, Turf, MapLibre, Mapbox GL, OpenLayers, deck.gl and Google Maps, HERE Flexible Polyline, streaming for chunked input and NDJSON, an optional WASM build and a CLI. Install: ```sh pnpm add @duoquote/polytini ``` ```sh bun add @duoquote/polytini ``` ```sh deno add jsr:@duoquote/polytini ``` ```sh yarn add @duoquote/polytini ``` ```sh npm i @duoquote/polytini ``` ESM and CommonJS, with TypeScript types. Node 22 or newer, Bun, Deno, browsers and Cloudflare Workers. Import the package name or one of the subpaths below, never a file under `src/` or `dist/`: export conditions pick the right build. In an installed package, every export has doc comments in `types/*.d.ts`. Without a bundler, import from a CDN: `https://esm.sh/@duoquote/polytini@0.1.5`, `https://cdn.jsdelivr.net/npm/@duoquote/polytini@0.1.5/+esm` (keep the `/+esm`; jsDelivr's bare URL fails for `import`) or `https://unpkg.com/@duoquote/polytini@0.1.5?module`. For a plain `