Teepee is a generic HTTP client for Node.js, currently at version 3.0.1. It provides basic functionality for making HTTP requests, akin to older-generation clients. The package has seen no significant code updates in approximately seven years, with its latest npm publication dating back five years (v3.0.1). This indicates the library is effectively abandoned and unmaintained. Unlike actively developed modern HTTP clients such as Axios or Node-Fetch, Teepee lacks native TypeScript support, a clear release cadence, and up-to-date documentation on its feature set or breaking changes between major versions. Its primary differentiator is its lightweight nature and adherence to older Node.js conventions for HTTP requests.
npm install teepeeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to perform a basic GET request to an example API endpoint using Teepee, handling headers and potential stream-based responses. It assumes an asynchronous function for fetching data.
Migrate to a currently maintained HTTP client library (e.g., `axios`, `node-fetch`, or native `fetch` API in Node.js 18+). Evaluate all dependencies for security vulnerabilities.
Consider creating a `teepee.d.ts` file with basic type declarations for common usage patterns or, preferably, migrate to a library with robust TypeScript support.
Thoroughly review the source code and run comprehensive regression tests if upgrading from a v2 version. The recommended fix is to avoid this library and use a maintained alternative.
Conduct a security audit of `teepee`'s transitive dependencies using tools like `npm audit` and manually verify the status of critical dependencies. Prioritize migration to a well-maintained and secure HTTP client.
For CommonJS, use `const teepee = require('teepee');`. For ESM, use `import teepee from 'teepee';`.Always wrap `await teepee(...)` calls in a `try...catch` block or chain a `.catch()` method to the promise returned by `teepee` to handle network errors or API responses indicating failure.
No dependency data recorded yet.