Skip to content

Instantly share code, notes, and snippets.

@creationix
Created January 30, 2010 06:33
Show Gist options
  • Save creationix/290455 to your computer and use it in GitHub Desktop.
Save creationix/290455 to your computer and use it in GitHub Desktop.
~$ coffee -i
coffee> process.mixin(require("sys"))
coffee> p
[Function]
coffee> p (x) -> x * x
[Function]
coffee> puts (x) -> x * x
function (x) {
return x * x;
}
coffee> puts on or yes
true
coffee> node
{
"createProcess": [Function],
"exec": [Function],
"inherits": [Function],
"http": {
"createServer": [Function],
"createClient": [Function]
},
"tcp": {
"createServer": [Function],
"createConnection": [Function]
},
"dns": {
"createConnection": [Function]
}
}
coffee> new Error("Test")
{
"message": "Test",
"stack": [Getter/Setter],
"name": "Error"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment