b1b78dca47
coffee -e -r ./snarl 'Hello!' Contents of 'snarl.coffee' in the working directory: http = require 'http' CoffeeScript.on 'exception', (err) -> client = http.createClient 9889, 'localhost' request = client.request 'GET', '/?d={"action":1,"applicationName":"CoffeeScript","title":' + JSON.stringify(err.message) + ',"description":' + JSON.stringify(err.stack) + ',"priority":3}' request.end() err.handled = yes To examine arguments available for each event (for debugging and getting started), use `puts JSON.stringify arguments`. See http://nodejs.org/api.html#modules-309 and NODE_PATH for more details on how -r looks for files. |
||
---|---|---|
.. | ||
cake.js | ||
coffee-script.js | ||
command.js | ||
grammar.js | ||
helpers.js | ||
index.js | ||
lexer.js | ||
nodes.js | ||
optparse.js | ||
parser.js | ||
repl.js | ||
rewriter.js | ||
scope.js | ||
utilities.js |