A quick node & coffee integration
I'm starting to write a script in nodeJS and I would like to use at the same time coffeescript syntax so I write this shortcut to be added in my .bash_profile configuration (for Mac)
function cofnode {
    coffee -c $1.coffee
    node $1.js
}now I can launch the command:
cofnode file_nameand it will automatically compile the file_name.coffee file into a javascript that will be automatically launched on node
Written by Marco Mazzocchi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Tags 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
