{"name":"call-bind","version":"1.0.9","description":"Robustly `.call.bind()` a function","main":"index.js","exports":{".":"./index.js","./callBound":"./callBound.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=auto","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=.js,.mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>=10.2' audit --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/call-bind.git"},"keywords":["javascript","ecmascript","es","js","callbind","callbound","call","bind","bound","call-bind","call-bound","function","es-abstract"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/call-bind/issues"},"homepage":"https://github.com/ljharb/call-bind#readme","dependencies":{"call-bind-apply-helpers":"^1.0.2","es-define-property":"^1.0.1","get-intrinsic":"^1.3.0","set-function-length":"^1.2.2"},"devDependencies":{"@ljharb/eslint-config":"^22.2.2","auto-changelog":"^2.5.0","encoding":"^0.1.13","es-value-fixtures":"^1.7.1","eslint":"^8.57.1","evalmd":"^0.0.19","for-each":"^0.3.5","has-strict-mode":"^1.1.0","in-publish":"^2.0.1","npmignore":"^0.3.5","nyc":"^10.3.2","object-inspect":"^1.13.4","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"testling":{"files":"test/index.js"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"gitHead":"8d6a98c3e049fac59e17b9a2399bb39624d7abd7","_id":"call-bind@1.0.9","_nodeVersion":"25.8.2","_npmVersion":"11.11.1","dist":{"integrity":"sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==","shasum":"39a644700c80bc7d0ca9102fc6d1d43b2fd7eee7","tarball":"http://registry-npm.ywwl.com/call-bind/download/call-bind-1.0.9.tgz","fileCount":12,"unpackedSize":24089,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQJoh4deBQgrflZ2B8mig6vQPszzn/a25NTreaNqV6YAIgB7ioX8frxMpHTa9gioC0vsseycWeHOko/m3ypTQlU3c="}],"size":8050,"noattachment":false,"key":"/call-bind/-/call-bind-1.0.9.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/call-bind_1.0.9_1775749088104_0.47309737940216867"},"_hasShrinkwrap":false,"readme":"# call-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nRobustly `.call.bind()` a function.\n\n## Getting started\n\n```sh\nnpm install --save call-bind\n```\n\n## Usage/Examples\n\n```js\nconst assert = require('assert');\nconst callBind = require('call-bind');\nconst callBound = require('call-bind/callBound');\n\nfunction f(a, b) {\n\tassert.equal(this, 1);\n\tassert.equal(a, 2);\n\tassert.equal(b, 3);\n\tassert.equal(arguments.length, 2);\n}\n\nconst fBound = callBind(f);\n\nconst slice = callBound('Array.prototype.slice');\n\ndelete Function.prototype.call;\ndelete Function.prototype.bind;\n\nfBound(1, 2, 3);\n\nassert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);\n```\n\n## Tests\n\nClone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/call-bind\n[npm-version-svg]: https://versionbadg.es/ljharb/call-bind.svg\n[deps-svg]: https://david-dm.org/ljharb/call-bind.svg\n[deps-url]: https://david-dm.org/ljharb/call-bind\n[dev-deps-svg]: https://david-dm.org/ljharb/call-bind/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/call-bind#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/call-bind.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/call-bind.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/call-bind.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=call-bind\n[codecov-image]: https://codecov.io/gh/ljharb/call-bind/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/call-bind/\n[actions-image]: https://img.shields.io/github/check-runs/ljharb/call-bind/main\n[actions-url]: https://github.com/ljharb/call-bind/actions\n","publish_time":1775749088274,"_cnpm_publish_time":1775749088274,"dist-tags":{"latest":"1.0.9"}}