# @rushstack/lookup-by-path

> Strongly typed trie data structure for path and URL-like strings.

Latest version **0.10.19** (published 2026-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rushstack/lookup-by-path
pnpm add @rushstack/lookup-by-path
yarn add @rushstack/lookup-by-path
bun add @rushstack/lookup-by-path
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.10.19 |
| Published | 2026-10-06 |
| First published | 2024-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.9.0 |
| Dependencies | 0 |
| Unpacked size | 188.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6498 |
| Maintainers | rushstack-admin, odspnpm, octogonz, microsoft1es |
| Keywords | trie, path, url, radix tree, prefix tree |

## Links

- npm: https://www.npmjs.com/package/@rushstack/lookup-by-path
- Repository: https://github.com/microsoft/rushstack
- Homepage: https://github.com/microsoft/rushstack#readme
- Issues: https://github.com/microsoft/rushstack/issues
- npm.io page: https://npm.io/package/@rushstack/lookup-by-path

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.10.19 (latest) — 2026-10-06
- 0.8.12 (pr5496) — 2026-01-12
- 0.10.18 — 2026-09-28
- 0.10.17 — 2026-09-22
- 0.10.16 — 2026-09-14
- 0.10.15 — 2026-09-09
- 0.10.14 — 2026-08-21
- 0.10.13 — 2026-08-20
- 0.10.12 — 2026-08-14
- 0.10.11 — 2026-07-21
- 0.10.10 — 2026-07-17
- 0.10.9 — 2026-07-16
- 0.10.8 — 2026-06-13
- 0.10.7 — 2026-06-08
- 0.10.6 — 2026-04-20
- … 84 more at https://npm.io/package/@rushstack/lookup-by-path/versions

## README

# @rushstack/lookup-by-path

This library contains a strongly-typed implementation of of a [Trie](https://en.wikipedia.org/wiki/Trie) (a.k.a. prefix tree) data structure optimized for file paths and URLs.

This package is used by Rush to associate Git hashes with their nearest ancestor Rush project, for example.

## Links

- [CHANGELOG.md](
  https://github.com/microsoft/rushstack/blob/main/libraries/lookup-by-path/CHANGELOG.md) - Find
  out what's new in the latest version
- [API Reference](https://api.rushstack.io/pages/lookup-by-path/)

`@rushstack/lookup-by-path` is part of the [Rush Stack](https://rushstack.io/) family of projects.

---
_Source: https://npm.io/package/@rushstack/lookup-by-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
