{"_id":"rootpath","_rev":"24-456c38c8871b350bc38b59b06b53f72d","name":"rootpath","description":"Little helper to make node.js require relative to your project root","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"rootpath","preferGlobal":false,"main":"./pathSetup.js","author":{"name":"Fabrizio Moscon","email":"mosconfabrizio@gmail.com"},"version":"0.1.0","description":"Little helper to make node.js require relative to your project root","scripts":{},"dependencies":{},"repository":{"type":"git","url":"https://github.com/fabriziomoscon/rootpath.git"},"gitHead":"8cbf637be7650e8eab50d00e675cedf73c2dcf4f","bugs":{"url":"https://github.com/fabriziomoscon/rootpath/issues"},"keywords":["require","require path","require absolute path"],"license":"MIT","_id":"rootpath@0.1.0","dist":{"shasum":"6946e3056ae60611d0f2b36fed3c504bb437c204","tarball":"https://registry.npmjs.org/rootpath/-/rootpath-0.1.0.tgz","integrity":"sha512-rKHa0MpyU7PMxT35LMdKG7HgojvVu0v/yEjLHoWPe0FlSXIe2Iw9SokIo0QlkYJ/hx9L3AWiJuKx0Cu/i7w+9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDiHHjgi7V3HMRrVNZCopZ8fdGFNd45eQJCY+xdGXuIlAiAxrIMEGvuDPEo81hujRUoII5i4BnALmGob0b3tuoAfOg=="}]},"_from":"./","_npmVersion":"1.2.21","_npmUser":{"name":"fabmos","email":"moscconfabrizio@gmail.com"},"maintainers":[{"name":"fabmos","email":"moscconfabrizio@gmail.com"}],"directories":{}},"0.1.1":{"name":"rootpath","preferGlobal":false,"main":"./pathSetup.js","author":{"name":"Fabrizio Moscon","email":"mosconfabrizio@gmail.com"},"version":"0.1.1","description":"Little helper to make node.js require relative to your project root","scripts":{"test":"cd test && ../node_modules/.bin/mocha ."},"dependencies":{},"repository":{"type":"git","url":"https://github.com/fabriziomoscon/rootpath.git"},"devDependencies":{"mocha":"1.11.x"},"gitHead":"8cbf637be7650e8eab50d00e675cedf73c2dcf4f","bugs":{"url":"https://github.com/fabriziomoscon/rootpath/issues"},"keywords":["require","require path","require absolute path"],"license":"MIT","_id":"rootpath@0.1.1","dist":{"shasum":"c91fed764be4693cab7ed70d821a1033981bb8ad","tarball":"https://registry.npmjs.org/rootpath/-/rootpath-0.1.1.tgz","integrity":"sha512-QPN2hTApLNCRQuQpTugv4LNklryev4vHlglJN+HaXYEM3LRuo4Rnj3lAgSSZlOKFACXufnvfEf8XLMgbV7TkUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkhM0TiRvSWkvHsT5rpcqCWfcIB8BwZ81ALBrXAatrZAiAMcCALdEei203tTNoHXNCs3hLwpFXwHknbM35RjcGqFA=="}]},"_from":"./","_npmVersion":"1.2.21","_npmUser":{"name":"fabmos","email":"moscconfabrizio@gmail.com"},"maintainers":[{"name":"fabmos","email":"moscconfabrizio@gmail.com"}],"directories":{}},"0.1.2":{"name":"rootpath","preferGlobal":false,"main":"./pathSetup.js","author":{"name":"Fabrizio Moscon","email":"mosconfabrizio@gmail.com"},"version":"0.1.2","description":"Little helper to make node.js require relative to your project root","scripts":{"test":"cd test && ../node_modules/.bin/mocha ."},"repository":{"type":"git","url":"https://github.com/fabriziomoscon/rootpath.git"},"devDependencies":{"mocha":"^1.18.2"},"gitHead":"8cbf637be7650e8eab50d00e675cedf73c2dcf4f","bugs":{"url":"https://github.com/fabriziomoscon/rootpath/issues"},"keywords":["require","require path","require absolute path"],"license":"MIT","homepage":"https://github.com/fabriziomoscon/rootpath","_id":"rootpath@0.1.2","_shasum":"5b379a87dca906e9b91d690a599439bef267ea6b","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"fabmos","email":"mosconfabrizio@gmail.com"},"maintainers":[{"name":"fabmos","email":"moscconfabrizio@gmail.com"},{"name":"sandfox","email":"james.butler@sandfox.co.uk"}],"dist":{"shasum":"5b379a87dca906e9b91d690a599439bef267ea6b","tarball":"https://registry.npmjs.org/rootpath/-/rootpath-0.1.2.tgz","integrity":"sha512-R3wLbuAYejpxQjL/SjXo1Cjv4wcJECnMRT/FlcCfTwCBhaji9rWaRCoVEQ1SPiTJ4kKK+yh+bZLAV7SCafoDDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUwna4DyTXMwMBQHWlbBp51DdNoq5Rkjfth85KZNaM4AiAxiOcv4BdLXlKaqCGW+LvvAa35t/zwLef/vs/BBhR2PQ=="}]},"directories":{}}},"readme":"rootpath\n========\n\nLittle helper to make node.js `require` relative to your project root\n\nWhen working on a node.js project with subfolders you might find it difficult to remember the correct relative path to include a common module or library which is not published on npm. \nUsing this module you just need to remember your own project directory structure and make all `require` absolute to the project root directory\n\n[![Build Status](https://travis-ci.org/fabriziomoscon/rootpath.png)](https://travis-ci.org/fabriziomoscon/rootpath)\n\ninstall\n-------\n\n`npm install rootpath`\n\n\nBEFORE\n```JavaScript\n// from $HOME_PROJECT/lib/math/\nvar myLib = require('../myLibrary');\nvar myUtils = require('../../utils/myUtils');\nvar myTest = require('../../test/myTest');\n``` \n\nAFTER\n```JavaScript\n// from $HOME_PROJECT/lib/math/\n\nrequire('rootpath')();\n\nvar myLib = require('lib/myLibrary');\nvar myUtils = require('utils/myUtils');\nvar myTest = require('test/myTest');\n```\n\nimprovements\n------------\n\nForks and pull requests are welcome. There is always a better way of achieving a goal. This project will benefit from the contribution of the community.\n\ntest\n----\n\n```bash\nnpm test\n```\nlicense\n-------\n\nMIT","maintainers":[{"name":"fabmos","email":"moscconfabrizio@gmail.com"},{"name":"sandfox","email":"james.butler@sandfox.co.uk"}],"time":{"modified":"2022-06-26T14:10:55.071Z","created":"2013-06-23T18:52:38.494Z","0.1.0":"2013-06-23T18:52:41.724Z","0.1.1":"2013-06-23T19:25:07.438Z","0.1.2":"2014-04-29T10:08:42.445Z"},"author":{"name":"Fabrizio Moscon","email":"mosconfabrizio@gmail.com"},"repository":{"type":"git","url":"https://github.com/fabriziomoscon/rootpath.git"},"users":{"bendytree":true,"rbecheras":true,"dracco":true,"andfaulkner":true,"slowmove":true,"bluelovers":true,"pablo.tavarez":true,"cognivator":true,"diniduddd":true,"onestone":true,"ahmedfarooki":true,"volodymyr.sichka":true,"3ddario":true,"dsitum":true},"keywords":["require","require path","require absolute path"],"bugs":{"url":"https://github.com/fabriziomoscon/rootpath/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/fabriziomoscon/rootpath"}