Created
July 31, 2012 01:48
-
-
Save sgentile/3212655 to your computer and use it in GitHub Desktop.
Calling a Module with Coffeescript
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
#helloWorld.coffee file | |
# Node Module | |
run = -> | |
console.log 'This is example node module' | |
exports.run = run | |
# Calling from another file, ie. app.coffee | |
helloWorldModule = require "./helloWorld" | |
helloWorldModule.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment