call-bind-apply-helpers
npmv1.0.2TypeScriptHelper functions around Function call/apply/bind, for use in `call-bind`
Adopt with care
call-bind-apply-helpers is usable, with caveats. Last published 574 days ago. 3 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 574 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 58 KB installed.
- 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-apply-helpers to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing call-bind-apply-helpers, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.4
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the call-bind-apply-helpers README.
const assert = require('assert');
const callBindBasic = require('call-bind-apply-helpers');
function f(a, b) {
assert.equal(this, 1);
assert.equal(a, 2);
assert.equal(b, 3);
assert.equal(arguments.length, 2);
}
const fBound = callBindBasic([f, 1]);
delete Function.prototype.call;
delete Function.prototype.bind;Dependencies
Declared by call-bind-apply-helpers v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (21)
Used by
Popular packages that depend on call-bind-apply-helpers.
Robustly `.call.bind()` a function
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Get and robustly cache all JS language-level intrinsics at first require time
Relationship graph
Dependencies (left) and dependents (right) of call-bind-apply-helpers.
Frequently installed together
An AST-based pattern checker for JavaScript.
string representations of objects in node and the browser
`Object.defineProperty`, but not IE 8's broken one.
Get and robustly cache all JS language-level intrinsics at first require time
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
ES Math-related intrinsics and helpers, robustly cached.
A robust, ES3 compatible, "has own property" predicate.
Implementation of Function.prototype.bind
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Set a function's length property
A simple cache for a few of the JS Error constructors.
ES Object-related atoms: Object, ToObject, RequireObjectCoercible
Release history
3 releases in the last two years, typically about 66 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.2latest | 1 year ago | 16 KB | MIT |
| 1.0.1 | 1 year ago | 14 KB | MIT |
| 1.0.0 | 1 year ago | 14 KB | MIT |
Overview
call-bind-apply-helpers is an npm package that helper functions around Function call/apply/bind, for use in `call-bind`. It has 3 known dependents in the graph. The latest version is 1.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need helper functions around Function call/apply/bind, for use in `call-bind` 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.
Maintainers
Frequently asked questions
Should I use call-bind-apply-helpers?
call-bind-apply-helpers is usable, with caveats. Last published 574 days ago. 3 releases in the last 2 years.
How do I install call-bind-apply-helpers?
Run `npm install call-bind-apply-helpers` to add call-bind-apply-helpers to your npm project.
How many dependencies does call-bind-apply-helpers have?
call-bind-apply-helpers declares 23 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 58 KB on disk.
What license is call-bind-apply-helpers released under?
call-bind-apply-helpers is distributed under the MIT license.
How popular is call-bind-apply-helpers?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on call-bind-apply-helpers.
Is call-bind-apply-helpers still maintained?
The most recent release of call-bind-apply-helpers (v1.0.2) was published 1 year ago.
Does call-bind-apply-helpers run install scripts?
No. call-bind-apply-helpers does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.