{"dist":{"shasum":"ad6f30c13becd797010c468afa775c0c0a6b47fa","tarball":"https://registry.npmjs.org/require-like/-/require-like-0.1.2.tgz","integrity":"sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A==","signatures":[{"sig":"MEYCIQCqpGsSTU3N841i42BPA5bHIWEk9+aovBk1m5+8jl0CiAIhAO/pfP1GWpRgie563AtXbJHpR07nwhmlhUz68NBOh2PW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/require-like","name":"require-like","author":{"url":"http://debuggable.com/","name":"Felix Geisendörfer","email":"felix@debuggable.com"},"readme":"# require-like\n\n[![Build Status](https://secure.travis-ci.org/felixge/node-require-like.png)](http://travis-ci.org/felixge/node-require-like)\n\nGenerates require functions that act as if they were operating in a given path.\n\n## Install\n\n``` bash\nnpm install require-like\n```\n\n## Usage\n\nA require function that acts as if it was executed in `'./lib/bar'`:\n\n``` javascript\nvar requireLike = require('require-like');\nvar myRequire = requireLike(__dirname + '/lib/bar.js');\n\nvar myFoo = myRequire('./foo.js');\nvar foo = require('./lib/foo');\n\nrequire('assert').strictEqual(myFoo, foo);\n```\n\n## API\n\n### requireLike(path, [uncached])\n\nReturns a require function that acts as if it was operating in the given\n`path`.\n\nSetting the `uncached` parameter to true returns a function that by-passes the\nmodule cache.\n\n## Implementation Details\n\nThis module works by accessing some private node APIs. You shouldn't worry about\nthat so, since I will make sure this module does not break in the future by\neither patching it, or making a patch for node that makes the needed APIs\npublic.\n\n## What to do with this\n\nI use this library for dependency injection in unit tests. However, you could\nalso use it to create experimental require addons yourself.\n\n## License\n\nrequire-like is licensed under the MIT license.\n","engines":{"node":"*"},"scripts":{"test":"make test"},"_npmUser":{"name":"felixge","email":"felix@debuggable.com"},"homepage":"https://github.com/felixge/node-require-like","repository":{"url":"git://github.com/felixge/node-require-like.git","type":"git"},"_npmVersion":"1.1.0-3","description":"Generates require functions that act as if they were operating in a given path.","maintainers":[{"name":"felixge","email":"felix@debuggable.com"}],"_nodeVersion":"v0.6.9","dependencies":{},"_defaultsLoaded":true,"devDependencies":{"urun":"0.0.4","hashish":"0.0.3"},"_engineSupported":true,"optionalDependencies":{},"_id":"require-like@0.1.2","version":"0.1.2"}