PHP 8.2.30
Preview: index.js Size: 427 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/require-main-filename/index.js

module.exports = function (_require) {
  _require = _require || require
  var main = _require.main
  if (main && isIISNode(main)) return handleIISNode(main)
  else return main ? main.filename : process.cwd()
}

function isIISNode (main) {
  return /\\iisnode\\/.test(main.filename)
}

function handleIISNode (main) {
  if (!main.children.length) {
    return main.filename
  } else {
    return main.children[0].filename
  }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
852 B lrw-r--r-- 2026-02-27 09:44:56
Edit Download
427 B lrw-r--r-- 2026-02-27 09:44:56
Edit Download
731 B lrw-r--r-- 2026-02-27 09:44:56
Edit Download
854 B lrw-r--r-- 2026-02-27 09:44:56
Edit Download
1.04 KB lrw-r--r-- 2026-02-27 09:44:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).