Add curl.js example.

This commit is contained in:
Miao Jiang 2013-02-19 21:12:21 +08:00
parent 7c776b81a5
commit 2884985e9a
2 changed files with 32 additions and 0 deletions

8
examples/curl.toffee Normal file
View file

@ -0,0 +1,8 @@
curl = require '../index'
p = console.info
err, res = curl! process.argv[2], {VERBOSE: 1, DEBUG: 1}
if err
p err
else
p res