Created
August 13, 2012 17:02
-
-
Save matjaz/3342528 to your computer and use it in GitHub Desktop.
Run coffee script directly without globally installed coffee command
This file contains 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
#!/usr/bin/env node | |
coffee=require('coffee-script');fs=require('fs');coffee.run(fs.readFileSync(__filename, 'utf-8').slice(136, -2)); | |
/* | |
console.log i for i in [3..1] | |
console.log 'Lift off!' | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not really. Try in sublime. It works ok.