Created
June 28, 2014 07:21
-
-
Save retrohacker/6a2cfd8fd92ebd63c78c to your computer and use it in GitHub Desktop.
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
/* | |
same file name, two different files. | |
*/ | |
var fs = require('fs') | |
var file = './test.js' | |
var test = require(file)() | |
fs.readFile(file,"utf-8",function(e,data) { | |
console.log(data) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment