title: Better coffeescript workaround to load this node.js module
body: <p>I would like to use this node.js module <a href="https://github.com/mlin/node-assert-type" rel="nofollow">https://github.com/mlin/node-assert-type</a></p>
  
  <p>Based on documentation, to declare the module;</p>
  
  <pre><code>var ty = require("assert-type"); //https://github.com/mlin/node-assert-type
  var T = ty.Assert;
  </code></pre>
  
  <p>In actual practice, this does not work. Some coffeescript error appears.</p>
  
  <p>I have to make the following workaround;</p>
  
  <pre><code>var cs = require("coffee-script/register");//this line needed to require("assert-type")
  var ty = require("assert-type"); //https://github.com/mlin/node-assert-type
  var T = ty.Assert;
  </code></pre>
  
  <p>To use this module, I am forced to install coffeescript with <code>npm install -g coffeescript</code>.</p>
  
  <p>Is there some way to omit the line <code>var cs = require("coffee-script/register");</code>? After all, the module itself is using coffeescript locally. Am I doing it the right way?</p>
  
  <p>Is it a normal practice to add a line to load coffeescript for node.js modules which use coffee-script?</p>