Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 23, 2024 via pnpm
Package summary
Share
1
issue
1
critical severity
vulnerability
1
3
licenses
31
MIT
6
ISC
1
BSD-3-Clause
Package created
22 Aug 2011
Version published
15 Aug 2023
Maintainers
7
Total deps
38
Direct deps
10
License
MIT

Issues

1

1 critical severity issue

critical
Recommendation: Upgrade to version 3.2.4 or later
via: formidable@2.1.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
31 Packages, Including:
asap@2.0.6
asynckit@0.4.0
call-bind@1.0.7
combined-stream@1.0.8
component-emitter@1.3.1
cookiejar@2.1.4
debug@4.3.4
define-data-property@1.1.4
delayed-stream@1.0.0
es-define-property@1.0.0
es-errors@1.3.0
fast-safe-stringify@2.1.1
form-data@4.0.0
formidable@2.1.2
function-bind@1.1.2
get-intrinsic@1.2.4
gopd@1.0.1
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
hasown@2.0.2
hexoid@1.0.0
methods@1.1.2
mime-db@1.52.0
mime-types@2.1.35
mime@2.6.0
ms@2.1.2
object-inspect@1.13.1
set-function-length@1.2.2
side-channel@1.0.6
superagent@8.1.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
dezalgo@1.0.4
lru-cache@6.0.0
once@1.4.0
semver@7.6.0
wrappy@1.0.2
yallist@4.0.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
qs@6.12.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

10
All Dependencies CSV
β“˜ This is a list of superagent 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
component-emitter1.3.12.46 kBMIT
prod
cookiejar2.1.44.05 kBMIT
prod
debug4.3.412.94 kBMIT
prod
fast-safe-stringify2.1.17.71 kBMIT
prod
form-data4.0.010.24 kBMIT
prod
formidable2.1.225.44 kBMIT
prod
1
methods1.1.22.42 kBMIT
prod
mime2.6.018.29 kBMIT
prod
qs6.12.1241.26 kBBSD-3-Clause
prod
semver7.6.026.57 kBISC
prod

Visualizations

Frequently Asked Questions

What does superagent do?

Superagent is a small, progressive client-side HTTP request library. It also functions as a Node.js module with the same API, supporting many high-level HTTP client features. This respected library, maintained by Forward Email and Lad, is well-known for its feature-rich browser and node HTTP capacities combined with a fluent API. Its programming purpose is to enable an easier way of writing, reading and maintaining API requests in your code.

How do you use superagent?

To utilize the power of Superagent in your project, the npm package must first be installed. By using commands npm install superagent or yarn add superagent, you are set to start with HTTP requests. Here are a few code examples showcasing its usage in Node.js and in the browser:

Node.js:

const superagent = require('superagent');

// callback
superagent
  .post('/api/pet')
  .send({ name: 'Manny', species: 'cat' }) // sends a JSON post body
  .set('X-API-Key', 'foobar')
  .set('accept', 'json')
  .end((err, res) => {
    // Calling the end function will send the request
  });

// promise with then/catch
superagent.post('/api/pet').then(console.log).catch(console.error);

// promise with async/await
(async () => {
  try {
    const res = await superagent.post('/api/pet');
    console.log(res);
  } catch (err) {
    console.error(err);
  }
})();

Browser:

<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
<script src="https://cdn.jsdelivr.net/npm/superagent"></script>
<script type="text/javascript">
  (function() {
    superagent
      .post('/api/pet')
      .send({ name: 'Manny', species: 'cat' }) // sends a JSON post body
      .set('X-API-Key', 'foobar')
      .set('accept', 'json')
      .end(function (err, res) {
        // Calling the end function will send the request
      });
  })();
</script>

Where are the superagent docs?

The Superagent library has a comprehensive documentation available directly on their GitHub page (https://github.com/ladjs/superagent). The readme document presents install instructions, usage examples for both Node.js and browser configurations, descriptions of supported platforms, and a list of noteworthy plugins. Users planning to upgrade from previous versions of the Superagent library will also find an upgrading guide in the readme section.