sl-request is a Node.js HTTP client, version 1.0.8, explicitly stated as a fork of the widely used but now deprecated `request` library, primarily for internal use by sealights.io. This package attempts to provide a simplified API for making HTTP calls, supporting HTTPS, automatic redirects, streaming, and various request body types (forms, multipart). However, inheriting its core from the original `request` library, it carries the same limitations and risks, including a callback-centric API, known security vulnerabilities, and a lack of modern maintenance. The original `request` library was officially deprecated in February 2020 due to its unmaintained status, security risks, and outdated architectural patterns that do not align with modern JavaScript and Node.js paradigms. Users should be aware that `sl-request` likely shares these fundamental issues and does not offer a current, actively maintained solution for HTTP requests. Release cadence is infrequent, reflecting its internal-use nature and the deprecated status of its upstream.
npm install sl-requestVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic GET request, streaming a file via PUT, and error handling for stream-based operations, using `sl-request`.
Migrate to a modern, actively maintained HTTP client like `axios`, `node-fetch`, or `got`. Review your project's dependency tree for `request` or its forks and plan for replacement.
Immediately replace `sl-request` with a secure, well-maintained HTTP client. Regularly audit your dependencies using `npm audit` and keep them updated.
If migrating is not immediately possible, use `util.promisify` from Node.js's built-in `util` module to wrap callback-style functions, or consider a dedicated promise-wrapper library if available for this fork. The better long-term solution is migration.
Monitor memory usage and performance closely in production. The most effective fix is to migrate to a modern HTTP client designed with better performance and memory management.
Ensure you are importing the correct package name: `const request = require('sl-request');` or `import request from 'sl-request';`.Acknowledge that `sl-request` inherits the deprecation status of its upstream. While the warning is expected, the recommended fix is to migrate to a modern, actively maintained HTTP client.
Use the correct import pattern: for ESM `import request from 'sl-request';` or for CJS `const request = require('sl-request');`. The main export is a callable function, not an object with named properties that need destructuring.No dependency data recorded yet.