call-bound
npmv1.0.4TypeScriptRobust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Overview
call-bound is an npm package that robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`. The latest version is 1.0.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic` and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (23 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of call-bound.
Dependencies
Dev (21)
Used by
Popular packages that depend on call-bound.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Store information about any JS value in a side channel. Uses WeakMap if available.
Get and robustly cache all JS language-level intrinsics at first require time
Store information about any JS value in a side channel, using a Map
Is this an arguments object? It's a harder question than you think.
Is this value a JS SharedArrayBuffer?
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Alternatives to call-bound
Robustly `.call.bind()` a function
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.
A JavaScript parser
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Implementation of Function.prototype.bind
An AST-based pattern checker for JavaScript.
A simple cache for a few of the JS Error constructors.
A robust, ES3 compatible, "has own property" predicate.
A query library for ECMAScript AST using a CSS selector like query language.
An Esprima-compatible JavaScript parser built on Acorn
Frequently installed together
An AST-based pattern checker for JavaScript.
string representations of objects in node and the browser
A simple cache for a few of the JS Error constructors.
Get and robustly cache all JS language-level intrinsics at first require time
A robust, ES3 compatible, "has own property" predicate.
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
`Object.defineProperty`, but not IE 8's broken one.
Helper functions around Function call/apply/bind, for use in `call-bind`
TypeScript definitions for node
Store information about any JS value in a side channel, using a Map
Implementation of Function.prototype.bind
Version history
| Version | Published | License |
|---|---|---|
| 1.0.4latest | 1 year ago | MIT |
| 1.0.3 | 1 year ago | MIT |
| 1.0.2 | 1 year ago | MIT |
| 1.0.1 | 1 year ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install call-bound?
Run `npm install call-bound` to add call-bound to your npm project.
What license is call-bound released under?
call-bound is distributed under the MIT license.
How popular is call-bound?
call-bound has approximately 0 downloads per week and 2 known dependent packages.