Skip to content
Limited Edition DevTools

Units-LE

Extract every quantity with its unit, normalized, and refuse the ambiguous ones by name

FreeOpen sourceMITNo network access

No editor in the loop? npx -y units-le-mcp runs the same engine as an MCP server, so an agent can call extract_units with nothing else installed, and cargo install units-le puts the same check in a terminal. Every way to install it.

Overview

What Units-LE does

A number without its unit is not something you can compare. Units-LE finds every quantity in a tree and reports it twice: the text the document actually holds, and that value in one base unit. Four dimensions — duration in milliseconds, bytes, percent as a ratio, frequency in hertz. JSON, YAML, CSV, TOML, INI and dotenv are parsed; everything else is scanned as text, so a Kubernetes manifest or a Markdown table of limits yields its quantities rather than nothing. What it will not do is guess: a bare m is minutes in one config format, milliseconds in another and millicores in Kubernetes, so it comes back refused by name rather than resolved.

What people use it for

  • Reconcile two services

    A timeout of 30s in one file and 30000 in another are the same number of milliseconds, and nothing about the text says so.

  • Catch the 7% nobody sees

    1GB and 1GiB look identical at a glance and differ by seventy-three million bytes. The base value is where that shows.

  • Stop a build on an ambiguity

    Strict mode exits non-zero if any quantity was refused, so a cpu value of 500m fails review instead of being guessed at.

Palette

5 commands

Open the command palette and type the name. Nothing is bound to a shortcut by default — the editor's keymap is the user's, not ours.

units-le.showPositions: Show the line and column of each quantity. On by default.

  • Extract Quantitiesunits-le.extract
  • Scan Workspace for Quantitiesunits-le.scanWorkspace
  • Scan Folder for Quantitiesunits-le.scanFolder
  • Open Settingsunits-le.openSettings
  • Help & Troubleshootingunits-le.help

Install

Install Units-LE

VS Code

ext install nolindnaidoo.units-le

Open Quick Open (Cmd/Ctrl+P) and paste.

Cursor / Windsurf

cursor --install-extension nolindnaidoo.units-le

Cursor, Windsurf, VSCodium and the other VS Code forks pull from Open VSX. The id is the same as on the Marketplace.

AI agents

npx -y units-le-mcp

Runs Units-LE's engine as an MCP server, so an agent can call extract_units with no editor involved. VS Code 1.101+ needs nothing — the extension registers it for you.

Channels

Where it ships

One engine, 5 places to get it. Copy the one for the editor you use.

Links

Where Units-LE lives

The family

The other 16