A small Node.js HTTP client for making REST requests with promise-based responses. Version 1.0.12 provides a simple Request constructor that takes a base path and optional default headers. Supports GET, POST, PUT, DELETE methods with URL parameter substitution (both :param and {param} syntax) and automatic query string building for unused parameters. Different from full-featured clients like Axios or Got, it focuses on minimalism with no external dependencies. Stable but not actively maintained; last update was in 2017.
npm install rest-requestNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Request instance, make a GET request, and handle the promise result with async/await.
Consider migrating to a modern HTTP client like 'got' or 'axios'.
If you need to combine headers, manually handle merging.
Use either :param or {param} throughout the path string.Upgrade to >=1.0.0 and use .then()/.catch() or async/await instead of callbacks.
Run 'npm install rest-request' and ensure require('rest-request') is correct.Use 'const Request = require('rest-request'); const restAPI = new Request(baseUrl);'Create a new Request instance with a base URL first, then call methods on it.
No dependency data recorded yet.