CoffeeScriptのREPLでunderscoreを`__`にrequireして起動する


_は直前の実行結果を表す変数にbindされているので、underscoreは__あたりを使えば良さそうですが、いちいち起動時に __=require 'underscore' するのも面倒なので、

coffee -r __=underscore

のようにすればokです。

package.json

{
  "scripts": {
    "console": "coffee -r __=uncerscore",
  }
}

などと書いておけば、npm run console で起動できますね。