</>PackageGraphPackageGraph

negotiator

npmv1.1.0

HTTP content negotiation

Safe to adopt

Yes — negotiator scores well across adoption, maintenance, weight, supply chain, and licensing. 203.7M downloads per week and 2 known dependents. Last published 20 days ago. 2 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    203.7M downloads per week and 2 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 20 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 46 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding negotiator to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

46 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing negotiator, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=18
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the negotiator README.

var Negotiator = require('negotiator')

negotiator vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
negotiatorthis page203.7M2MIT20 days ago
content-type206.7M6MIT6 days ago
node-fetch194.2M9MIT6 days ago
undici172.9M15MIT6 days ago
http-errors169.9M7MIT6 days ago
accepts148.3M7MIT7 days ago

Dependencies

Declared by negotiator v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

eslint 7.32.0eslint-plugin-markdown 2.2.1mocha ^11.7.0nyc ^17.1.0vitest 3.2.4

Used by

Popular packages that depend on negotiator.

Relationship graph

Dependencies (left) and dependents (right) of negotiator.

content-typeacceptsmake-fetch-happennegotiator
negotiator dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 58 days apart.

Recent versions of negotiator
VersionPublishedSizeLicense
1.1.0latest20 days ago24 KBMIT
0.6.41 year ago28 KBMIT
1.0.02 years ago28 KBMIT
0.6.34 years ago27 KBMIT
0.6.27 years ago27 KBMIT
0.6.110 years agoMIT
0.6.011 years agoMIT
0.5.311 years agoMIT
0.5.211 years agoMIT
0.5.111 years agoMIT
0.5.011 years agoMIT
0.4.912 years agoMIT
0.4.812 years agoMIT
0.4.712 years agoMIT
0.4.612 years agoMIT

Overview

negotiator is an npm package that hTTP content negotiation. It is extremely widely used, with about 203.7M downloads per week and 2 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need hTTP content negotiation and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (203.7M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use negotiator?

Yes — negotiator scores well across adoption, maintenance, weight, supply chain, and licensing. 203.7M downloads per week and 2 known dependents. Last published 20 days ago. 2 releases in the last 2 years.

How do I install negotiator?

Run `npm install negotiator` to add negotiator to your npm project.

How many dependencies does negotiator have?

negotiator declares 6 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 46 KB on disk.

What license is negotiator released under?

negotiator is distributed under the MIT license.

How popular is negotiator?

negotiator has approximately 203,664,219 downloads per week and 2 known dependent packages.

Is negotiator still maintained?

The most recent release of negotiator (v1.1.0) was published 20 days ago.

Does negotiator run install scripts?

No. negotiator does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.