The npm package call-bind has seen sporadic releases since its initial version in October 2020. There were two releases in January 2021 and a burst of three releases in October 2023. February 2024 saw two releases. The latest release was in December 2024, with no releases in 2025 up to August. The package appears to be infrequently updated.
call-bind's downloads showed strong growth from March 2024 to August 2025. There were fluctuations month to month but the general trend was upwards. Peaking in June 2025 and July 2025 and the downloads for September 2025 are not yet complete, showing a significant drop.
call-bind reliably determines and securely binds a function's call method, handling edge cases across JavaScript environments. Unlike naive .call.bind(fn), it correctly binds even when fn.call is deliberately non-standard or tampered with. It provides cached, reusable bound call functions for performance and robustly ensures this context is passed as intended, essential for maintaining code integrity and compatibility in diverse JavaScript runtimes. Use callBind(func, receiver, ...args) to invoke func with receiver as this and optional arguments.