call-bind
npmv1.0.9Robustly `.call.bind()` a function
Overview
call-bind is an npm package that robustly `.call.bind()` a function. 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 focused 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
- 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.
Relationship graph
Dependencies (left) and dependents (right) of call-bind.
Dependencies
Runtime (4)
Dev (14)
Used by
Popular packages that depend on call-bind.
node's assert.deepEqual algorithm
ES6 spec-compliant RegExp.prototype.flags shim.
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Get an iterator for any JS language value. Works robustly across all environments, all versions.
Set a function's length property
Alternatives to call-bind
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Get and robustly cache all JS language-level intrinsics at first require time
Set a function's length property
`Object.defineProperty`, but not IE 8's broken one.
An Esprima-compatible JavaScript parser built on Acorn
A query library for ECMAScript AST using a CSS selector like query language.
A JavaScript parser
A simple cache for a few of the JS Error constructors.
A robust, ES3 compatible, "has own property" predicate.
An AST-based pattern checker for JavaScript.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Implementation of Function.prototype.bind
Frequently installed together
An AST-based pattern checker for JavaScript.
Get and robustly cache all JS language-level intrinsics at first require time
string representations of objects in node and the browser
Is this an arguments object? It's a harder question than you think.
Does this JS environment support the `name` property on functions?
A simple cache for a few of the JS Error constructors.
Array#isArray for older browsers
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
The semantic version parser used by npm.
Store information about any JS value in a side channel. Uses WeakMap if available.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Version history
| Version | Published | License |
|---|---|---|
| 1.0.9latest | 3 months ago | MIT |
| 1.0.8 | 1 year ago | MIT |
| 1.0.7 | 2 years ago | MIT |
| 1.0.6 | 2 years ago | MIT |
| 1.0.5 | 2 years ago | MIT |
| 1.0.4 | 2 years ago | MIT |
| 1.0.3 | 2 years ago | MIT |
| 1.0.2 | 5 years ago | MIT |
| 1.0.1 | 5 years ago | MIT |
| 1.0.0 | 5 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install call-bind?
Run `npm install call-bind` to add call-bind to your npm project.
What license is call-bind released under?
call-bind is distributed under the MIT license.
How popular is call-bind?
call-bind has approximately 0 downloads per week and 5 known dependent packages.