Closed mscdex closed 12 years ago
@Contra How do I use node-linq without coffee-script?
EDIT: This patch just makes it more convenient for those who don't use/want coffee-script to use node-linq and people who do use coffee-script can still use it just fine.
You just do require('node-linq') - When you require coffee-script it adds .coffee to the list of extensions for require. In index.js you can see it require()'s coffee-script then exports the real module (which is compiled at runtime by the new .coffee handler).
What's the point in doing this? It works fine in a JS environment without having to prebuild