Requiring CoffeeScript 1.7+ files in NodeJS
If you are building something in node but prefer CoffeeScript like me, then you will need to add this to your first js file, eg. app.js
require('coffee-script/register');
Why? You can google that.
Oh yeah and of course you must have already
npm install -g coffee-script
or
npm install --save coffee-script if you are doing it locally.
This used to be
require('coffee-script') and the docs need to be improved.
Written by Dustin Johnson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Nodejs 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
