Skip to content

Instantly share code, notes, and snippets.

@retrohacker
Created June 28, 2014 07:21
Show Gist options
  • Save retrohacker/6a2cfd8fd92ebd63c78c to your computer and use it in GitHub Desktop.
Save retrohacker/6a2cfd8fd92ebd63c78c to your computer and use it in GitHub Desktop.
/*
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