Last active
December 28, 2022 07:10
-
-
Save DarrenSem/d81ea66f75bd3e4b6d178617a6b9d528 to your computer and use it in GitHub Desktop.
xt.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("TOP"); | |
exports.importedInfo = [, 3, 6, 9, exports && exports.length, "someGlobal:", typeof someGlobal !== "undefined" && someGlobal]; | |
module.exports.xyz = 123; | |
alert('executing xt.js?' + location.href); | |
exports.abc = 456; | |
exports.xyz = 777; | |
module.eXYZxports = 444; | |
console.log("__filename", __filename); | |
console.log("__dirname", __dirname); | |
console.log("require", require); | |
debugger; | |
// console.log( require("https://gist.githubusercontent.com/DarrenSem/d81ea66f75bd3e4b6d178617a6b9d528/raw/c162185bc5f1a0a12fbf8ee6fccd74040aa6e2ce/xt2.js") ); | |
var returnedFrom2nd = require("../../../d81ea66f75bd3e4b6d178617a6b9d528/raw/4da7393ae298d531e0a07437aedd17fe7d099db4/xt2.js"); | |
console.log( "returnedFrom2nd=" + returnedFrom2nd ); | |
exports.returnedFromSecond = returnedFrom2nd; | |
return 9001; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("xt2 -- TOP"); | |
module.exports.xyz = "xt2"; | |
alert('executing xt2.js?' + location.href); | |
console.log("__filename", __filename); | |
console.log("__dirname", __dirname); | |
console.log("require", require); | |
debugger; | |
console.log( require("") ); | |
console.log(module.exports.xyz); | |
module.exports = "returning string from xt2"; | |
return 42; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment