{"library":"promised-http","title":"promised-http","description":"Promised-http is an early, proof-of-concept HTTP library for Node.js that wraps the native `http` module with promises (specifically the `q` library). Version 0.0.2 is the latest and only release, with no updates since 2011. It predates modern promise patterns and ES6 Promises, making it obsolete. Key differentiators: one of the first promise-based HTTP clients, but now superseded by `axios`, `node-fetch`, and `got`. Not recommended for new projects.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install promised-http"],"cli":null},"imports":["import { request } from 'promised-http';","import http from 'promised-http';","import { get } from 'promised-http';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import http from 'promised-http';\n\nconst options = {\n  host: 'api.example.com',\n  path: '/data',\n  method: 'GET'\n};\n\nhttp.request(options)\n  .then(response => {\n    console.log('Status:', response.statusCode);\n    return response.body;\n  })\n  .then(body => console.log('Body:', body))\n  .catch(err => console.error('Error:', err));","lang":"javascript","description":"Demonstrates basic GET request using the promise-based `request` function from promised-http. Note: The library is outdated and not recommended for production.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}