A Node.js HTTP client that streams JSON content from REST collections and lists, with automatic pagination support for continuous streaming across multiple requests. Version 0.0.1 is an early release with limited maintenance. Unlike simple HTTP clients, it transparently handles common pagination patterns (Link headers, envelope properties like nextLink, @odata.nextLink, etc.) and extracts array data from response bodies. Requires the 'request' package (deprecated) as a dependency and works only in Node.js with JSON APIs.
npm install rest-collection-streamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: getting a stream from a REST collection and piping it to a file.
Migrate to a modern HTTP client like 'got', 'node-fetch', or 'axios'. This package may not be updated to do so.
Use the callback-style return pattern instead of relying on `this`: return an array of items from the `data` function.
Ensure the API returns valid JSON. If not, consider a different HTTP client.
Provide a custom `next` function to handle your API's pagination logic.
Use default import: `import restCollection from 'rest-collection-stream'` (not `import { restCollection }`).Ensure 'request' is in your package.json: `npm install request`. Consider replacing request due to deprecation.
Verify the API URL and that it returns JSON. For non-JSON APIs, use a different library.