coughify
browserify v2 plugin for cough-syrup
mix and match .cough
and .js
files in the same project
example
given some files written in a mix of js
and cough
:
foo.cough:
console.log (require './bar.js')
bar.js:
moduleexports = 5
baz.cough:
module.exports = \n -> n * 111
install coughify into your app:
$ npm install coughify
when you compile your app, just pass -t coughify
to browserify:
$ browserify -t coughify foo.cough > bundle.js
$ node bundle.js
555
you can omit the .cough
extension from your requires if you add the extension to browserify's module extensions:
moduleexports = 5
$ browserify -t coughify --extension=".cough" foo.cough > bundle.js
$ node bundle.js
555
install
With npm do:
npm install coughify
license
MIT