{"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":"http://registry-npm.ywwl.com/deep-bind/download/deep-bind-0.3.0.tgz","integrity":"sha512-SwekOBPDnCT3qhOM78ARzBdPSbNMyQ63F8eZDahBzzVAoqousMhYh3HYIh2pLmhtGcVvO8/SU6B6kMsj0SXb1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB9VgAZScCFsYqXrAFrDbaCyNHKJKthWncCW2oJtw/bgIhAPFuiHCyrJuPL7jF9RZ4fknNDI+ZIERmACt+fUio+x5Y"}],"size":2542,"noattachment":false,"key":"/deep-bind/-/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":{},"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":1462244458499,"_cnpm_publish_time":1462244458499,"dist-tags":{"latest":"0.3.0"}}