MCPcopy
hub / github.com/di-sukharev/opencommit / "node_modules/shebang-command/index.js"

Function "node_modules/shebang-command/index.js"

out/cli.cjs:1319–1334  ·  view source on GitHub ↗
(exports2, module2)

Source from the content-addressed store, hash-verified

1317// node_modules/shebang-command/index.js
1318var require_shebang_command = __commonJS({
1319 "node_modules/shebang-command/index.js"(exports2, module2) {
1320 "use strict";
1321 var shebangRegex = require_shebang_regex();
1322 module2.exports = (string = "") => {
1323 const match = string.match(shebangRegex);
1324 if (!match) {
1325 return null;
1326 }
1327 const [path5, argument] = match[0].replace(/#! ?/, "").split(" ");
1328 const binary = path5.split("/").pop();
1329 if (binary === "env") {
1330 return argument;
1331 }
1332 return argument ? `${binary} ${argument}` : binary;
1333 };
1334 }
1335});
1336
1337// node_modules/cross-spawn/lib/util/readShebang.js

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…