{"library":"restler","title":"restler","description":"An HTTP client library for Node.js (v3.4.0) that simplifies making HTTP requests with automatic serialization of POST data, query strings, and deserialization of XML, JSON, and YAML responses. It handles redirects, multipart file uploads, SSL, basic auth, content-encoding (gzip, deflate), and charset via iconv-lite. Compared to modern alternatives like axios or node-fetch, restler is older, less actively maintained, and uses an event-based API that can lead to memory leaks if not managed properly. It supports Node >= 0.10.x, with limited maintenance; version 3.4.0 is the latest, with no major updates since 2015.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install restler"],"cli":null},"imports":["import restler from 'restler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const restler = require('restler');\n\nrestler.get('https://api.example.com/data', {\n  username: 'user',\n  password: process.env.PASS ?? ''\n}).on('complete', (data, response) => {\n  if (data instanceof Error) {\n    console.error('Error:', data.message);\n  } else {\n    console.log('Data:', data);\n  }\n});","lang":"javascript","description":"Demonstrates a basic GET request with authentication and handling the 'complete' event to check for errors.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}