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 May 5, 2024 via pnpm
Package summary
Share
10
issues
3
high severity
license
2
meta
1
1
moderate severity
meta
1
6
low severity
license
6
12
licenses
725
MIT
43
ISC
16
Apache-2.0
36
other licenses
BSD-2-Clause
12
BSD-3-Clause
8
(MIT OR CC0-1.0)
7
CC0-1.0
4
+ 5 more
Package created
22 Aug 2011
Version published
31 May 2022
Maintainers
7
Total deps
820
Direct deps
22
License
MIT

Issues

10

3 high severity issues

high
Recommendation: Read and validate the license terms
via: eslint-plugin-compat@4.2.0 & others
Recommendation: Read and validate the license terms
via: @commitlint/cli@17.8.1 & others
via: remark-cli@10.0.1
Collapse
Expand

1 moderate severity issue

moderate
via: xo@0.49.0
Collapse
Expand

6 low severity issues

low
Recommendation: Read and validate the license terms
via: eslint-plugin-compat@4.2.0
Recommendation: Read and validate the license terms
via: xo@0.49.0
Recommendation: Read and validate the license terms
via: @commitlint/cli@17.8.1 & others
Recommendation: Read and validate the license terms
via: remark-preset-github@4.0.4
Recommendation: Read and validate the license terms
via: eslint-plugin-compat@4.2.0 & others
Recommendation: Read and validate the license terms
via: @commitlint/cli@17.8.1 & others
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
725 Packages, Including:
@babel/code-frame@7.24.2
@babel/helper-validator-identifier@7.24.5
@babel/highlight@7.24.5
@commitlint/cli@17.8.1
@commitlint/config-conventional@17.8.1
@commitlint/config-validator@17.8.1
@commitlint/ensure@17.8.1
@commitlint/execute-rule@17.8.1
@commitlint/format@17.8.1
@commitlint/is-ignored@17.8.1
@commitlint/lint@17.8.1
@commitlint/load@17.8.1
@commitlint/message@17.8.1
@commitlint/parse@17.8.1
@commitlint/read@17.8.1
@commitlint/resolve-extends@17.8.1
@commitlint/rules@17.8.1
@commitlint/to-lines@17.8.1
@commitlint/top-level@17.8.1
@commitlint/types@17.8.1
@cspotcode/source-map-support@0.8.1
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@1.4.1
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/source-map@0.3.6
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@jridgewell/trace-mapping@0.3.9
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@tsconfig/node10@1.0.11
@tsconfig/node12@1.0.11
@tsconfig/node14@1.0.3
@tsconfig/node16@1.0.4
@types/concat-stream@2.0.3
@types/debug@4.1.12
@types/eslint-scope@3.7.7
@types/eslint@7.29.0
@types/eslint@8.56.10
@types/estree@1.0.5
@types/is-empty@1.2.3
@types/js-yaml@4.0.9
@types/json-schema@7.0.15
@types/json5@0.0.29

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
43 Packages, Including:
@ungap/structured-clone@1.2.0
anymatch@3.1.3
cliui@8.0.1
conventional-changelog-angular@6.0.0
conventional-changelog-conventionalcommits@6.1.0
dezalgo@1.0.4
electron-to-chromium@1.4.756
fastq@1.17.1
figgy-pudding@3.5.2
flatted@3.3.1
fs.realpath@1.0.0
get-caller-file@2.0.5
github-slugger@1.5.0
glob-parent@5.1.2
glob-parent@6.0.2
glob@7.2.3
graceful-fs@4.2.11
hosted-git-info@2.8.9
hosted-git-info@4.1.0
inflight@1.0.6
inherits@2.0.4
ini@1.3.8
isexe@2.0.0
libnpmconfig@1.2.1
lru-cache@6.0.0
make-error@1.3.6
minimatch@3.1.2
once@1.4.0
picocolors@1.0.0
rimraf@3.0.2
semver@5.7.2
semver@6.3.1
semver@7.5.4
semver@7.6.0
signal-exit@3.0.7
split2@3.2.2
which@2.0.2
wrappy@1.0.2
y18n@5.0.8
yallist@4.0.0
yaml@1.10.2
yargs-parser@20.2.9
yargs-parser@21.1.1

Apache License 2.0

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
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
16 Packages, Including:
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
@webassemblyjs/leb128@1.11.6
@xtuc/long@4.2.2
doctrine@2.1.0
doctrine@3.0.0
eslint-visitor-keys@1.3.0
eslint-visitor-keys@2.1.0
eslint-visitor-keys@3.4.3
fast-diff@1.3.0
human-signals@2.1.0
rxjs@7.8.1
spdx-correct@3.2.0
typescript@4.9.5
typescript@5.4.5
validate-npm-package-license@3.0.4

BSD 2-Clause "Simplified" 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
hold-liable
Must
include-copyright
include-license
12 Packages, Including:
eslint-scope@5.1.1
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
esutils@2.0.3
glob-to-regexp@0.4.1
normalize-package-data@2.5.0
normalize-package-data@3.0.3
terser@5.31.0
uri-js@4.4.1

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
8 Packages, Including:
@humanwhocodes/object-schema@2.0.3
@xtuc/ieee754@1.2.0
diff@4.0.2
diff@5.2.0
esquery@1.5.0
qs@6.12.1
serialize-javascript@6.0.2
source-map@0.6.1

(MIT OR CC0-1.0)

Public Domain
7 Packages, Including:
type-fest@0.18.1
type-fest@0.20.2
type-fest@0.21.3
type-fest@0.6.0
type-fest@0.8.1
type-fest@1.4.0
type-fest@2.19.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
4 Packages, Including:
@mdn/browser-compat-data@5.5.25
micro-spelling-correcter@1.1.1
spdx-license-ids@3.0.17
spdx-license-list@6.9.0

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
JSONStream@1.3.5

Python License 2.0

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

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001616

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

BSD Zero Clause 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
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2
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

22
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
@commitlint/cli17.8.19.02 kBMIT
prod optional
1
2
@commitlint/config-conventional17.8.13.22 kBMIT
prod optional
component-emitter1.3.12.46 kBMIT
prod
cookiejar2.1.44.05 kBMIT
prod
debug4.3.412.94 kBMIT
prod optional
eslint-config-xo-lass1.0.62.46 kBMIT
prod optional
eslint-plugin-compat4.2.011.65 kBMIT
prod optional
1
2
eslint-plugin-node11.1.046.96 kBMIT
prod optional
eslint8.57.02.9 MBMIT
prod optional peer
fast-safe-stringify2.1.17.71 kBMIT
prod
form-data4.0.010.24 kBMIT
prod
formidable2.1.225.44 kBMIT
prod
husky8.0.33.01 kBMIT
prod optional
lint-staged12.5.032.12 kBMIT
prod optional
methods1.1.22.42 kBMIT
prod
mime2.6.018.29 kBMIT
prod
qs6.12.1241.26 kBBSD-3-Clause
prod
readable-stream3.6.232.46 kBMIT
prod optional
remark-cli10.0.16.15 kBMIT
prod optional
1
remark-preset-github4.0.43.24 kBMIT
prod optional
1
semver7.6.026.57 kBISC
prod optional
xo0.49.01.13 MBMIT
prod optional
2
1
4

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.