0.1.2 • Published 12 years ago

curljs v0.1.2

Weekly downloads
18
License
-
Repository
github
Last release
12 years ago

curljs

Wraps the functionality of curl into an easy to use node module

Note: requires curl installation

Installation

Install curl first

curljs uses curl so make sure you have it installed first

http://curl.haxx.se/docs/install.html

Install curljs

$ [sudo] npm install curljs

Usage

include the library in your node.js file

var curl = require("curljs");

var curlOpts = {
    FOLLOW_REDIRECTS : 1,
    VERBOSE          : 0,
    SILENT           : 1,
    IGNORE_CERT      : 1,
    MAX_REDIRS       : 5,
    CONNECT_TIMEOUT  : 5 // time in seconds
}

curl("www.example.com", curlOpts, function(err, data, stderr) {
    // do something
}
0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago