{"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":"http://registry-npm.ywwl.com/deep-bind/download/deep-bind-0.2.0.tgz","integrity":"sha512-xgqCWNqL/1T1M7tKCmMdK820BBRt9TdmGLhQDlMbmRZ/BV2UFA8ENeS06W5fliSiAdKMnwG3gUaUbhemjcXdGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6xSMBTEPCzDU6h9r7oXGZz21c1SRuvAUtb/4v5C9YUAiEArBvvHBaZDDIguqFEfDAONjEy95tyBfDTQs7bEw2wpSY="}],"size":2371,"noattachment":false,"key":"/deep-bind/-/deep-bind-0.2.0.tgz"},"directories":{},"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._","publish_time":1454206931013,"_cnpm_publish_time":1454206931013,"dist-tags":{"latest":"0.3.0"}}