{"dist":{"shasum":"998824c39d74209962c0d43ded4dd03549a67472","tarball":"https://registry.npmjs.org/dependency-injector/-/dependency-injector-0.0.5.tgz","integrity":"sha512-XRBwd/NfbaZwnUK7+YWRZRJEC7xytLZy92VIRrTgFAYr4C5B2V9fEXWtLv5r1ZA5WJs45cF/rSaalgFSw2yDRg==","signatures":[{"sig":"MEUCIQDj7JL5/FPjwhG59Z6Eo4+xcisZ1LQMxpvxAoEBSQALqgIgCmYGj1oZhjOOs0fdnpj6cUqnJPtafjA2eBita7AGt7Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"dependency-injector","author":{"name":"Josh Perez","email":"josh@goatslacker.com"},"readme":"di\n==\n\nJavaScript dependency injection\n\n\n## Install\n\n    npm install dependency-injector\n\n\n## Usage\n\n    var DI = require('dependency-injector')\n    var di = new DI()\n\n    di.register({ foo: 2 })\n\n    var functionWithDependency = di.inject(function (foo) {\n      return foo\n    })\n\n    functionWithDependency == 2 // true\n\n\n## API\n\n### `register(name, fn)` | `register(dependencies)`\n\nRegisters your dependencies with the current instance of DI.\n\n    register('foo', 2)\n    register({ foo: 2 })\n\n### `getParameterNames(fn)`\n\nUtility function to retrieve parameter names from a function.\n\n    getParameterNames(function (foo, bar, baz) { }) // == ['foo', 'bar', 'baz']\n\n### `inject(fn, additionalDependencies)`\n\nCreates a function that is loaded with the dependencies. You may pass in\nadditional dependencies at this point.\n\n    inject(function (foo + bar) { return foo + bar }, { bar: 3 })\n\n### `clone()`\n\nClones the current set of dependencies into its own object.\n\n    var anotherInstance = clone()\n\n\n## License\n\n[MIT](http://josh.mit-license.org)\n","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"goatslacker","email":"josh@goatslacker.com"},"keywords":["di","dependency","injection","dependency injection","injector"],"repository":{"url":"https://github.com/goatslacker/di.git","type":"git"},"_npmVersion":"1.1.63","description":"Dependency Injection via function arguments","maintainers":[{"name":"goatslacker","email":"josh@goatslacker.com"}],"dependencies":{"get-parameter-names":"*"},"_id":"dependency-injector@0.0.5","version":"0.0.5"}