Promise-based HTTP/HTTPS client library for browser and Node.js. Current stable version is 1.10.3. Provides a simple API for JSON and binary requests with CORS support. Uses XMLHttpRequest2 in the browser and the 'xhr2' polyfill in Node.js. Last updated in 2019; no longer actively developed. Offers a minimalist alternative to larger libraries like axios or fetch, but lacks modern features and TypeScript types.
npm install art-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to make a GET request for JSON and then a PUT request to update a resource.
Use native fetch in modern environments or axios for a more feature-rich alternative.
Consider using 'node-fetch' or 'undici' for Node.js HTTP requests.
Ensure your server sends appropriate CORS headers (Access-Control-Allow-Origin, etc.) for cross-origin requests.
Use 'import RestClient from 'art-rest-client'' instead of 'import { RestClient } from 'art-rest-client''.Ensure xhr2 is installed (it is a dependency) and that your environment is correctly set up. In Node.js < 18, you may need to use a polyfill.
No dependency data recorded yet.