repo
replacements.fyi

// package

path-name

type: "module"

// preferences

// replacements (1)

snippet::path-key

Simple or drop-in replacement

This package is no longer necessary. You can use `Object.keys` with `Array.prototype.findLast` to find the case-insensitive `PATH` environment variable key.

// example

const pathKey =
	Object.keys(process.env).findLast(
		(k) => k.toUpperCase() === 'PATH',
	) ?? 'PATH';