MCPcopy
hub / github.com/di-sukharev/opencommit / pathKey2

Function pathKey2

out/cli.cjs:1229–1236  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

1227 "node_modules/path-key/index.js"(exports2, module2) {
1228 "use strict";
1229 var pathKey2 = (options = {}) => {
1230 const environment = options.env || process.env;
1231 const platform = options.platform || process.platform;
1232 if (platform !== "win32") {
1233 return "PATH";
1234 }
1235 return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1236 };
1237 module2.exports = pathKey2;
1238 module2.exports.default = pathKey2;
1239 }

Callers

nothing calls this directly

Calls 2

toUpperCaseMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…