{"library":"node-curl","title":"Node.js cURL Wrapper","description":"node-curl is an abandoned Node.js package that provides a wrapper around the `libcurl` library, allowing developers to perform HTTP and other network requests with access to all standard cURL options and information retrieval. Released with version 0.3.3, its last update was in 2014, making it incompatible with modern Node.js versions (the `engines` field specifies `>= 0.6.0`). Due to its age and lack of maintenance, it does not support current Node.js APIs, `node-gyp` versions, or ESM. It distinguishes itself by offering both a high-level function-based API and a lower-level `Curl` class for granular control over the transfer process. For contemporary applications, the actively maintained `node-libcurl` library serves as a modern and compatible alternative, which was originally based on the work of `node-curl` but has been largely rewritten.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install node-curl"],"cli":null},"imports":["const curl = require('node-curl');","const Curl = require('node-curl/lib/Curl');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const curl = require('node-curl');\n\ncurl('https://www.google.com', function(err) {\n  if (err) {\n    console.error('cURL error:', err);\n    return;\n  }\n  console.info('HTTP Status:', this.status);\n  console.info('-----');\n  console.info('Response Body Length:', this.body ? this.body.length : 0);\n  console.info('-----');\n  console.info('Download Size (bytes):', this.info('SIZE_DOWNLOAD'));\n});\n\ncurl('https://httpbin.org/get', { VERBOSE: 1, RAW: 1 }, function(err) {\n  if (err) {\n    console.error('cURL with options error:', err);\n    return;\n  }\n  console.info('-----');\n  console.info('Full cURL Result (RAW:1):', this);\n});","lang":"javascript","description":"Demonstrates a basic GET request and another with options (verbose output, raw buffer body).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}