</>PackageGraphPackageGraph

call-bind

npmv1.0.9

Robustly `.call.bind()` a function

Safe to adopt

Yes — call-bind scores well across adoption, maintenance, weight, supply chain, and licensing. 80.7M downloads per week and 5 known dependents. Last published 153 days ago. 2 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    80.7M downloads per week and 5 known dependents.

  • BMaintenance: grade B, Good.

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

  • BWeight: grade B, Good.

    Pulls in 14 transitive packages, about 230 KB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • 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 call-bind to a project.

4
Direct dependencies

Runtime packages this one declares itself.

14
Total installed

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

230 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

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

Compatibility

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

Quick start

A usage example from the call-bind README.

const assert = require('assert');
const callBind = require('call-bind');
const callBound = require('call-bind/callBound');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBind(f);

const slice = callBound('Array.prototype.slice');
Example truncated — see the full README.

call-bind vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
call-bindthis page80.7M5MIT5 months ago
call-bound07MIT1 day ago
get-intrinsic08MIT1 day ago
set-function-length01MIT1 day ago
eslint138.4M279MIT1 day ago
es-define-property131.3M4MIT1 day ago

Dependencies

Declared by call-bind v1.0.9. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (14)

@ljharb/eslint-config ^22.2.2auto-changelog ^2.5.0encoding ^0.1.13es-value-fixtures ^1.7.1eslint ^8.57.1evalmd ^0.0.19for-each ^0.3.5has-strict-mode ^1.1.0in-publish ^2.0.1npmignore ^0.3.5nyc ^10.3.2object-inspect ^1.13.4safe-publish-latest ^2.0.0tape ^5.9.0

Used by

Popular packages that depend on call-bind.

Relationship graph

Dependencies (left) and dependents (right) of call-bind.

Frequently installed together

Release history

2 releases in the last two years, typically about 70 days apart.

Recent versions of call-bind
VersionPublishedSizeLicense
1.0.9latest5 months ago24 KBMIT
1.0.81 year ago22 KBMIT
1.0.72 years ago22 KBMIT
1.0.62 years ago21 KBMIT
1.0.52 years ago21 KBMIT
1.0.42 years ago20 KBMIT
1.0.32 years ago828 KBMIT
1.0.25 years ago14 KBMIT
1.0.15 years ago14 KBMIT
1.0.05 years ago12 KBMIT

Overview

call-bind is an npm package that robustly `.call.bind()` a function. It is extremely widely used, with about 80.7M downloads per week and 5 known dependents in the graph. The latest version is 1.0.9, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need robustly `.call.bind()` a function and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, 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 (80.7M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (18 direct dependencies) increases install size and audit surface.
  • 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 call-bind?

Yes — call-bind scores well across adoption, maintenance, weight, supply chain, and licensing. 80.7M downloads per week and 5 known dependents. Last published 153 days ago. 2 releases in the last 2 years.

How do I install call-bind?

Run `npm install call-bind` to add call-bind to your npm project.

How many dependencies does call-bind have?

call-bind declares 18 direct dependencies and pulls in 14 packages in total once its runtime tree is resolved totalling about 230 KB on disk.

What license is call-bind released under?

call-bind is distributed under the MIT license.

How popular is call-bind?

call-bind has approximately 80,663,839 downloads per week and 5 known dependent packages.

Is call-bind still maintained?

The most recent release of call-bind (v1.0.9) was published 5 months ago.

Does call-bind run install scripts?

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