Pseudo method overloading for Node.js.