Is there a recommended way of developing a node module if I want to write it in Coffeescript, but don’t want to force the module’s users to require the coffee-script module?
Is there a recommended way of developing a node module if I want to
Share
Put your CoffeeScript codes in the
srcfolder and the compiled JavaScript codes inlibfolder.Then in your
package.jsonfile, declaremainto be the js file in thelibfolder. Then the users of your package will require the js file instead of the coffee file.You may take @TrevorBurnham’s repository as an example.