If the Deck_Setup needs to access exposed methods from Deck, use require
:
var deck = require('./Deck')
where thedeck
variable will be the result of your new constructor
You can also achieve it by setting both the setup and the Deck factory into the same module (you can export an object:
var Deck = {}
var Deck_Setup = {}
module.exports = {
Deck : Deck,
Deck_Setup : Deck_Setup
};
May be you should read this blog post and find your own way: http://bites.goodeggs.com/posts/export-this/