I have used CoffeeScript for a while. Now I need to write a npm package, can I write it in CoffeeScript, or I should compile CoffeeScript into JavaScript?
I'm going to suggest that you write your package in coffeescript, but only publish it in javascript. I do it like this:
src
lib
.gitignore
.npmignore
coffee-script
devDependencies
You can take a look at a simple package of mine, refix, for inspiration:
npm install refix
1.4m articles
1.4m replys
5 comments
57.0k users