Initial commit

This commit is contained in:
Brendan
2024-08-09 14:03:22 +00:00
commit 95cd19e099
1591 changed files with 215828 additions and 0 deletions

18
node_modules/require-main-filename/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
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
}
}