Back to Explore

sindresorhus/path-key

GitHub
2 watchersOpen source

Last release: 2021-04-09

Provides a small cross platform utility to determine the correct environment variable key for PATH (for example, handling Windows casing differences). Useful when you need the exact key to pass environment variables to child processes, work with custom environment objects, or use worker threads where case insensitivity may not apply.

Project status

  • Maintenance status: The package appears to be maintained only sporadically. The most recent published updates in the provided changelog are from v4.0.0 on 2021-04-09, and while the GitHub upstream shows a last push on 2025-09-12, no newer published updates are reflected in the provided summaries.
  • Update cadence: After a set of releases in 2019, the cadence slows significantly, with the next major update not arriving until 2021, and then no further versioned updates shown up to today (2026-06-09).

AI summary generated 2026-06-09

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.0.0

    2021-04-09

    v4.0.0 makes path-key a pure ESM package and raises the minimum supported Node.js version to 12. The implementation and TypeScript declaration files were updated accordingly, and CI/test tooling was modernized.

    Breaking
  • v3.1.1

    2019-11-22

    v3.1.1 is a small patch release focused on Windows behavior when both `Path` and `PATH` are present in the provided environment object. The main code change alters how the module selects which key casing to return for the PATH environment variable.

  • v3.1.0

    2019-04-05

    Release v3.1.0 focuses on a TypeScript declaration change to support CommonJS-style exporting. The code diff also adjusts runtime interop (adds a default property on module.exports) and updates the TypeScript type-test tooling.

    Breaking
  • v3.0.0

    2019-03-10

    v3.0.0 updates the package for a newer Node.js baseline and adds TypeScript typings. The primary developer impact is the enforced minimum Node.js version.

    BreakingFeatures