{"_id":"deep-bind","_rev":"111957","name":"deep-bind","description":"Bind a context to all functions in an object, including deeply nested functions.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:43:53.000Z","created":"2016-01-21T08:25:29.908Z","0.3.0":"2016-05-03T03:00:58.499Z","0.2.2":"2016-02-25T02:08:15.504Z","0.2.1":"2016-01-31T02:31:27.132Z","0.2.0":"2016-01-31T02:22:11.013Z","0.1.0":"2016-01-21T08:25:29.908Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/deep-bind.git"},"versions":{"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","size":2542,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-bind/download/deep-bind-0.3.0.tgz"},"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"},"directories":{},"publish_time":1462244458499,"_cnpm_publish_time":1462244458499,"_hasShrinkwrap":false},"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e6688f517d849944f26df526327c0c795e1e4924","size":2524,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-bind/download/deep-bind-0.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/deep-bind-0.2.2.tgz_1456366092846_0.3192906111944467"},"directories":{},"publish_time":1456366095504,"_cnpm_publish_time":1456366095504,"_hasShrinkwrap":false},"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1491b959463836cda4b575dbcc8a58e3ef4cdd2a","size":2402,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-bind/download/deep-bind-0.2.1.tgz"},"directories":{},"publish_time":1454207487132,"_cnpm_publish_time":1454207487132,"_hasShrinkwrap":false},"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3491d07fd71f05a204b5e97d0345c6e585c440da","size":2371,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-bind/download/deep-bind-0.2.0.tgz"},"directories":{},"publish_time":1454206931013,"_cnpm_publish_time":1454206931013,"_hasShrinkwrap":false},"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ed80fcedd1e7178a1a3ce072b67d725d0ee91a4a","size":2197,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-bind/download/deep-bind-0.1.0.tgz"},"directories":{},"publish_time":1453364729908,"_cnpm_publish_time":1453364729908,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/deep-bind","bugs":{"url":"https://github.com/jonschlinkert/deep-bind/issues"},"license":"MIT"}