Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 600 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 600 Bytes

CURL -- Simple client url library, with high level request functions

Install

  npm install curl

Or from source:

  git clone git://github.com/ianjorgensen/curl.git 
  cd curl
  npm link .

Functions

curl.get

curl.get(url, options, function(err, response, body) {});

curl.post

curl.post(url, body, options, function(err, response, body) {});

curl.getJSON

curl.getJSON(url, options, function(err, response, data){});

curl.postJSON

curl.postJSON(url, data, options, function(err, response, data){});