{"_id":"root-require","_rev":"208645","name":"root-require","description":"For use in tests only! require() using a relative path from the root directory of the present module","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"time":{"modified":"2021-06-03T15:23:05.000Z","created":"2014-01-03T14:46:00.425Z","0.3.1":"2014-01-15T02:03:28.955Z","0.3.0":"2014-01-15T01:59:40.554Z","0.2.0":"2014-01-03T16:23:26.666Z","0.1.0":"2014-01-03T15:14:29.278Z","0.0.4":"2014-01-03T15:13:14.523Z","0.0.3":"2014-01-03T14:53:44.374Z","0.0.2":"2014-01-03T14:53:10.568Z","0.0.1":"2014-01-03T14:46:00.425Z"},"users":{"leroysalih":true},"author":{"name":"Mike McNeil"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"versions":{"0.3.1":{"name":"root-require","version":"0.3.1","description":"For use in tests only! require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.3.1","dist":{"shasum":"95e1554d63cc869a2abde3e3bfc9bbaaa1edacd3","size":2802,"noattachment":false,"key":"/root-require/-/root-require-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.3.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1389751408955,"_cnpm_publish_time":1389751408955,"_hasShrinkwrap":false},"0.3.0":{"name":"root-require","version":"0.3.0","description":"For use in tests only! require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.3.0","dist":{"shasum":"fce009872d7ea6fb5ca282a8f783155098138370","size":2647,"noattachment":false,"key":"/root-require/-/root-require-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1389751180554,"_cnpm_publish_time":1389751180554,"_hasShrinkwrap":false},"0.2.0":{"name":"root-require","version":"0.2.0","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.2.0","dist":{"shasum":"7e74337f55d747ee9c30c24d262d10a2b6dd3853","size":2445,"noattachment":false,"key":"/root-require/-/root-require-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388766206666,"_cnpm_publish_time":1388766206666,"_hasShrinkwrap":false},"0.1.0":{"name":"root-require","version":"0.1.0","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.1.0","dist":{"shasum":"94330f41c4723357d4ad763375b0c9759ec25dab","size":2064,"noattachment":false,"key":"/root-require/-/root-require-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388762069278,"_cnpm_publish_time":1388762069278,"_hasShrinkwrap":false},"0.0.4":{"name":"root-require","version":"0.0.4","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.0.4","dist":{"shasum":"920b0ab157ec7af18acdc7c32c59d69669a1eadc","size":2104,"noattachment":false,"key":"/root-require/-/root-require-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388761994523,"_cnpm_publish_time":1388761994523,"_hasShrinkwrap":false},"0.0.3":{"name":"root-require","version":"0.0.3","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.0.3","dist":{"shasum":"6591f6526bf5b0c02dbc56e203e7d88f6d31454a","size":1756,"noattachment":false,"key":"/root-require/-/root-require-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388760824374,"_cnpm_publish_time":1388760824374,"_hasShrinkwrap":false},"0.0.2":{"name":"root-require","version":"0.0.2","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.0.2","dist":{"shasum":"ca51c866253c01f04f9ce841994f8de7fda3e775","size":1754,"noattachment":false,"key":"/root-require/-/root-require-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388760790568,"_cnpm_publish_time":1388760790568,"_hasShrinkwrap":false},"0.0.1":{"name":"root-require","version":"0.0.1","description":"require() using a relative path from the root directory of the present module","main":"index.js","dependencies":{"packpath":"~0.1.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikermcneil/root-require.git"},"keywords":["root","require","relative"],"author":{"name":"Mike McNeil"},"license":"MIT","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"homepage":"https://github.com/mikermcneil/root-require","readmeFilename":"README.md","_id":"root-require@0.0.1","dist":{"shasum":"7ad66bf1ab55705dcc25c981f477b7f519c67101","size":1755,"noattachment":false,"key":"/root-require/-/root-require-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/root-require/download/root-require-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"}],"directories":{},"publish_time":1388760360425,"_cnpm_publish_time":1388760360425,"_hasShrinkwrap":false}},"readme":"root-require\n============\n\n## Usage\n\nJust once:\n```\nvar Sails = require('root-require')('lib/app');\n```\n\nMore than once:\n```\nvar rootRequire = require('root-require');\n\nvar Sails = rootRequire('lib/app');\nvar Router = rootRequire('lib/router');\nvar MiddlewareLibrary = rootRequire('lib/middleware');\n```\n\n## Purpose\na more convenient require method for certain situations.\n\n## How it do\nThis lets you `require()` using a relative path from the root directory of the present module.\n\n\n## Credit where credit is due\nThis is mainly a thin wrapper around `packpath` (https://github.com/jprichardson/node-packpath)-- this module just exists so we can do it in one line.\n\n\n## License\n\nMIT, c. 2014 Mike McNeil\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/mikermcneil/root-require","bugs":{"url":"https://github.com/mikermcneil/root-require/issues"},"license":"MIT"}