Thursday, October 3, 2013

use require to fish for a .js file within a folder

var tagger = require('./testy');

...becomes...

var tagger = require('./myfolder/testy');

...with regards to this stuff. The last bit in a chain of slash separated things is assumed to be the name of a .js file and not a folder.

No comments:

Post a Comment