{"_id":"deep-bind","_rev":"8-c5d18887269d7b2e73af75a4af1ffc9e","name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/deep-bind","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"verb":{"related":{"list":[]},"toc":false,"plugins":["gulp-format-md"],"layout":"default"},"gitHead":"090c72227845583627974be095aa16c1358b48db","_id":"deep-bind@0.1.0","_shasum":"ed80fcedd1e7178a1a3ce072b67d725d0ee91a4a","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ed80fcedd1e7178a1a3ce072b67d725d0ee91a4a","tarball":"https://registry.npmjs.org/deep-bind/-/deep-bind-0.1.0.tgz","integrity":"sha512-4tvipV3QaS9oqN1lD0IhEzCIP4lAiaE12J6VOImZ7JZfCfVcmH/RxDYYoEcVzpSBUXEw3iZZyraS61Or6EYA6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3dBfgY7qgpwXRxkKknPMOVIS8Bp3d/tLEU1goaLlqLAiEA1/UqH/LCSph6MxLnsSN/CA3Plrvsf/t7hBMNzO6invk="}]}},"0.2.0":{"name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/deep-bind","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"mixin-deep":"^1.1.3"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["bind","context","deep","helper","helpers"],"verb":{"related":{"list":[]},"toc":false,"plugins":["gulp-format-md"],"layout":"default"},"gitHead":"1768e63f9ce6dd9619f5287b43d5bd296766f40d","_id":"deep-bind@0.2.0","_shasum":"3491d07fd71f05a204b5e97d0345c6e585c440da","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3491d07fd71f05a204b5e97d0345c6e585c440da","tarball":"https://registry.npmjs.org/deep-bind/-/deep-bind-0.2.0.tgz","integrity":"sha512-xgqCWNqL/1T1M7tKCmMdK820BBRt9TdmGLhQDlMbmRZ/BV2UFA8ENeS06W5fliSiAdKMnwG3gUaUbhemjcXdGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6xSMBTEPCzDU6h9r7oXGZz21c1SRuvAUtb/4v5C9YUAiEArBvvHBaZDDIguqFEfDAONjEy95tyBfDTQs7bEw2wpSY="}]}},"0.2.1":{"name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/deep-bind","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"mixin-deep":"^1.1.3"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["bind","context","deep","helper","helpers"],"verb":{"related":{"list":[]},"toc":false,"plugins":["gulp-format-md"],"layout":"default"},"gitHead":"04d9e7a33443903700b950f177cfa08846a61da5","_id":"deep-bind@0.2.1","_shasum":"1491b959463836cda4b575dbcc8a58e3ef4cdd2a","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1491b959463836cda4b575dbcc8a58e3ef4cdd2a","tarball":"https://registry.npmjs.org/deep-bind/-/deep-bind-0.2.1.tgz","integrity":"sha512-AJgiFpDf9YMEjRLtfLlBbhuDzHzJ/02dSCvpnwfenP2S77KoZ0cnq3KvAE3i/BR3mh6KJvY7E1sm4Dv5J+RN5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLzYWatvtBUdJ1o2nTHQ47xcECI31aP6fhZqKFzR8HRgIgdFM6ZYkzG3f/gFn78Numby28H5spz2TfYi5nviwcvfs="}]}},"0.2.2":{"name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/deep-bind","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"mixin-deep":"^1.1.3"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["bind","context","deep","helper","helpers"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"98888bc7639fd5752319bb22b62b1b2bf64f390e","_id":"deep-bind@0.2.2","_shasum":"e6688f517d849944f26df526327c0c795e1e4924","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e6688f517d849944f26df526327c0c795e1e4924","tarball":"https://registry.npmjs.org/deep-bind/-/deep-bind-0.2.2.tgz","integrity":"sha512-JNQjONQ44+YaYMXIXqaRxZOsGhWmPUq9aZxQvYynT4oeirVU6Zc95b1LuS++HOoNdlId67KoHHWQIFPMb2OEvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgPBVUvTx+jk3vE3ndc23YuRHuBSBktZNAXGKgz4NLEQIgbFXBIzJqyKY9BoI6m7TH9DldoAwzMGVvlymFQ5leVhE="}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/deep-bind-0.2.2.tgz_1456366092846_0.3192906111944467"}},"0.3.0":{"name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/deep-bind","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"mixin-deep":"^1.1.3"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["bind","context","deep","helper","helpers"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"c654562afd3712add9d41ec02cabdb5c45e99a0b","_id":"deep-bind@0.3.0","_shasum":"95c31dd84a1cd1b381119a2c42edb90db485bc33","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"95c31dd84a1cd1b381119a2c42edb90db485bc33","tarball":"https://registry.npmjs.org/deep-bind/-/deep-bind-0.3.0.tgz","integrity":"sha512-SwekOBPDnCT3qhOM78ARzBdPSbNMyQ63F8eZDahBzzVAoqousMhYh3HYIh2pLmhtGcVvO8/SU6B6kMsj0SXb1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB9VgAZScCFsYqXrAFrDbaCyNHKJKthWncCW2oJtw/bgIhAPFuiHCyrJuPL7jF9RZ4fknNDI+ZIERmACt+fUio+x5Y"}]},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/deep-bind-0.3.0.tgz_1462244457375_0.20754941878840327"}}},"readme":"# deep-bind [![NPM version](https://img.shields.io/npm/v/deep-bind.svg?style=flat)](https://www.npmjs.com/package/deep-bind) [![NPM downloads](https://img.shields.io/npm/dm/deep-bind.svg?style=flat)](https://npmjs.org/package/deep-bind) [![Build Status](https://img.shields.io/travis/jonschlinkert/deep-bind.svg?style=flat)](https://travis-ci.org/jonschlinkert/deep-bind)\n\n> Bind a context to all functions in an object, including deeply nested functions.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install deep-bind --save\n```\n\n## Usage\n\n```js\nvar deepBind = require('deep-bind');\n```\n\n**Example**\n\nBind a context to an object of template helpers before passing them to an engine:\n\n```js\nvar ctx = {\n  app: {views: {}},\n  context: {a: 'b'}\n};\n\n// pass the following to the template engine\nvar helpers = deepBind({\n  foo: function() {\n    return this.context;\n  },\n  bar: function() {},\n  baz: function() {}\n}, ctx);\n```\n\n## API\n\n### [deepBind](index.js#L14)\n\nBind a `thisArg` to all the functions on the target\n\n**Params**\n\n* `target` **{Object|Array}**: Object or Array with functions as values that will be bound.\n* `thisArg` **{Object}**: Object to bind to the functions\n* `returns` **{Object|Array}**: Object or Array with bound functions.\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/deep-bind/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/deep-bind/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 02, 2016._","maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-14T22:49:32.787Z","created":"2016-01-21T08:25:29.908Z","0.1.0":"2016-01-21T08:25:29.908Z","0.2.0":"2016-01-31T02:22:11.013Z","0.2.1":"2016-01-31T02:31:27.132Z","0.2.2":"2016-02-25T02:08:15.504Z","0.3.0":"2016-05-03T03:00:58.499Z"},"homepage":"https://github.com/jonschlinkert/deep-bind","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["bind","context","deep","helper","helpers"]}