{"_id":"rcfinder","_rev":"24-ccde3a815a7fe727b8c46a51a2c86291","name":"rcfinder","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"rcfinder","version":"0.1.0","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"expect.js":"~0.2.0"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.0","dist":{"shasum":"432c03d9e53d981fd307ab61f2c5d192c2499724","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.0.tgz","integrity":"sha512-tUP5g7oQShMkJ1mlddgUr8z/tFaG5ChVOZcwEIsatFbJAy7MgFlUuEtEcQ4aKuPtjh74+8qBrov9me2P7WY6lA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOVwluyyU4NtMrNhY/HxpswihHSLMj6daaeI9tjTTv8AiEAkqgckrOkbliBXPzESxDbm+K/DRuVXV150D0OOZxivqw="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.1":{"name":"rcfinder","version":"0.1.1","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.1","dist":{"shasum":"3a71a612887983b803ba2bc0c5a915c9496ffc82","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.1.tgz","integrity":"sha512-USwCBdc1rtjujkJPH+OxluzeVCREsTQnjJ8C8rb7mVfZLQBEgu88SrGFGNRWHWBwzqADW3votlUIRAfPgPPgDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc+jsjP6Ym02rcstJLAiqTAawt5wQJ08eGbPa1PlEqngIgU3g7cIGtb5IfSCII8EhQPu4HLw8yE7PZaHoFLObjKiE="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.2":{"name":"rcfinder","version":"0.1.2","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.2","dist":{"shasum":"9b9457e3d8ded0413d14e40f0859774386888edb","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.2.tgz","integrity":"sha512-oITiZJSWFwtSQaHt4ElHuqmFV/XPxADhHuoOqiZ/VY4B2rdO4tUzx5ZlMVFg+uptJ+73/DrdrzuG4GJoHPfW/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbdBAUpNr09XMV28dokCIu0KpaC5g1SkDGx0TmSE8ICAiEAgTGvmGH3n6eC+2gOQshpiDVwzQo6lhI2n8SAXzmAHQc="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.3":{"name":"rcfinder","version":"0.1.3","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.3","dist":{"shasum":"f2402e074cedf3e7aba7a32a14fb0511c2e56dfb","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.3.tgz","integrity":"sha512-+FXEdVw2/wDrbNWoInU3+oOZVMJz8EhGpPfXBxnlSogLp1ZFUUHCYbKfS3uvuOvdrDPWtDR6U+c1CXBiYxhYdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9UhulFSNoVw+l1ro4iedI92dYFC6O+ozaQlrCeKsyAAIhAKcJpyto8PVSpi27i9lvO1kDf25kAeY1RO+rtZAcxaXR"}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.4":{"name":"rcfinder","version":"0.1.4","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash.clonedeep":"~2.4.1"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.4","dist":{"shasum":"fb1555cde28da93680af89ec855826094c8af84e","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.4.tgz","integrity":"sha512-xh2XFTsl/7k4/+Wg03yTPrCmXfqYdv74fdrgmVWUQgA3ROV2eGmGFP0N3nyvHfUzKJa6GiT6Ja7/wwKpAYujsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2Jp9KF9Mdab1dREAj4BoPehScA2P4CuufAmL86uG7iAIhAKA3SSKB7ErVg6+up+h4U/L0EqO+3zUXYcpMynKepC5T"}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.5":{"name":"rcfinder","version":"0.1.5","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha test/*.js"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash.clonedeep":"~2.4.1"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.5","dist":{"shasum":"ffb468b2129cd1de34f6010d37336de340e5fc77","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.5.tgz","integrity":"sha512-h32zrODQquGQUkykFlT3DFzeM7hiNvTZ7QJLBCQ1OuMHUoqbZ8xdoJGKAkj+pOIJgdQ15qNt75HMXhOKxTBUQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMmTYmcWSYz4GGFMfvBfuhXoMbY9N8BimO+jRCmOE0/gIhAP5jYXgB6GX7WuvqEZ1SrTCuDdY/h5K/dwIgjT5GnCqc"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.6":{"name":"rcfinder","version":"0.1.6","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha test/*.js"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash.clonedeep":"~2.4.1"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.6","dist":{"shasum":"08591731cb39763c02d8e725192470f378fbd8ea","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.6.tgz","integrity":"sha512-XamnCN82Q1ODFUlfXWkbybiG1kJupxlamd0iJNUEs3/lC6Y3WW7MNU4T+HxPUsR2OD/A77bcTAHSVFBUBPz8Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7I7+f7dmVYjSG1Mlw5HC1p8+pt1z+6fYXTmymKg/oJAiEA/ZsW4leiFWoQAVydqNLlqY04NH3Mrj+0UHyqLEvErN4="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}]},"0.1.7":{"name":"rcfinder","version":"0.1.7","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha test/*.js"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash":"~2.4.1"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.7","_shasum":"cda40edf40b1bf1c613e6a53464d2fc17925138c","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}],"dist":{"shasum":"cda40edf40b1bf1c613e6a53464d2fc17925138c","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.7.tgz","integrity":"sha512-4oIvyCe0XdBGhaDB1ysBAbrml+qTwkAUaEjO0jBUdpcpjSG7HvudeAiaVDIz1mOueJMm1GqNfeiyoZBSVc4ROQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAhF8quwWAslrmh5J7fNnFywqP7KzlFhAaFG53wWHZoAiAOeqRvjHlqNj6tW8mwti+tgioGV2J0FyBwRqzUxgGHHQ=="}]}},"0.1.8":{"name":"rcfinder","version":"0.1.8","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha test/*.js"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash":"~2.4.1"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","_id":"rcfinder@0.1.8","_shasum":"5fa24066830cf6a665f9e3820cb3c67f0af4058e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"spenceralger","email":"spencer@spenceralger.com"},"maintainers":[{"name":"spenceralger","email":"spencer@spenceralger.com"}],"dist":{"shasum":"5fa24066830cf6a665f9e3820cb3c67f0af4058e","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.8.tgz","integrity":"sha512-RzTxTvJwHMUbpAFDhZFVOGj54jX/NrqRbyrApW6LjSRlhVVvZpYWunGk7WO2R/AY+rJgZMPay48o7uRhydWuUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCetzmoNB8ezGWH1CRpGfb8sJdFHy0y5nlHHg7FqlZCXgIhAIz4q5x/SZWfn4lqsnFj0WBpIq5WI6dRGTp2uMjVKA2K"}]}},"0.1.9":{"name":"rcfinder","version":"0.1.9","description":"Find a config file (like .jshintrc) by walking up from a specific directory.","main":"index.js","scripts":{"test":"mocha test/*.js"},"keywords":["find","rcfile","rc","search","defaults","config"],"author":{"name":"Spencer Alger"},"license":"MIT","devDependencies":{"mocha":"^2.4.0","expect.js":"~0.2.0"},"directories":{"test":"test"},"dependencies":{"lodash.clonedeep":"^4.3.2"},"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"homepage":"https://github.com/spenceralger/rcfinder","engines":{"node":">=0.10"},"gitHead":"a5c3d5825ea5e23eadd3a657936023529a01579d","_id":"rcfinder@0.1.9","_shasum":"f3e80f387ddf9ae80ae30a4100329642eae81115","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"spalger","email":"email@spalger.com"},"dist":{"shasum":"f3e80f387ddf9ae80ae30a4100329642eae81115","tarball":"https://registry.npmjs.org/rcfinder/-/rcfinder-0.1.9.tgz","integrity":"sha512-rhSo812VIVaX7cxl33KkllHRwfLvjZL3lQedWEpQ27YlMFKZbFZsiVdCcQn/Z0FauLWxIpKrNREGuHbJFSi0Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoxihTiok3zgFejfyGO4JsafHlMDnqVZG5Z5SIw1jx/AiBHKPbrHVZQ3U7BG7owZArtSB0cUa0YTjcEualdgDTdNQ=="}]},"maintainers":[{"name":"spalger","email":"email@spalger.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rcfinder-0.1.9.tgz_1462823694853_0.652188234264031"}}},"readme":"# rcfinder\n\n[![Travis CI](https://travis-ci.org/spalger/rcfinder.svg)](https://travis-ci.org/spalger/rcfinder)\n\n**This module provides the file lookup logic for the generally more useful [rcloader](https://www.npmjs.org/package/rcloader) package**.\n\nFind a config file (like .jshintrc) by walking up from a specific directory.\n\nCustom logic can be implemented for loading your config files, and calls to\nthe file system are cached so that you can find files relative to every file\nin a project without making a ton of unnecessary calls.\n\n## install\n```js\nnpm install rcfinder\n```\n\n## Use\nCreate an instance of the RcFinder class, passing it the name of your config file and an object specifying other options.\n\n```js\nvar RcFinder = require('rcfinder');\nvar rcFinder = new RcFinder('.jshintrc', {});\n```\n\nThen you can use the finder to look up the proper config file for a directory.\n```js\n// get the closet .jshintc file for this file\nvar config = rcFinder.find(__dirname);\n```\n\nIf you want to use async file system calls, just specify a callback to find.\n```js\nrcFinder.find(__dirname, function (err, config) {\n\n});\n```\n\n## Config\nWhen creating an instance of the RcFinder class, you can specify options to dictate how the class behaves.\n### config.loader\nA function to call that will load a given path. Once the path for a config file is determined, this will be called with that path as it's only argument and it should return a proper value.\n\nThe default loader is:\n```js\nfunction loader(path) {\n  return JSON.parse(fs.readFileSync(path));\n}\n```\n\nTo make your loader async, simply ask for second argument which will be set to a node-style callback. You can also ask for a simple async JSON loader by setting `loader:` equal to `'async'`.\n\nNOTE:  You must call `.find()` with a callback if your loader is async.\n","maintainers":[{"name":"spalger","email":"email@spalger.com"}],"time":{"modified":"2022-06-25T14:47:43.704Z","created":"2014-02-17T18:33:31.098Z","0.1.0":"2014-02-17T18:33:31.098Z","0.1.1":"2014-02-17T18:34:52.021Z","0.1.2":"2014-02-17T20:35:32.674Z","0.1.3":"2014-02-17T21:23:56.746Z","0.1.4":"2014-02-18T14:16:46.159Z","0.1.5":"2014-03-31T17:04:03.626Z","0.1.6":"2014-03-31T17:20:24.431Z","0.1.7":"2014-05-06T01:18:09.199Z","0.1.8":"2014-07-07T23:08:49.603Z","0.1.9":"2016-05-09T19:54:55.267Z"},"readmeFilename":"README.md","homepage":"https://github.com/spenceralger/rcfinder","keywords":["find","rcfile","rc","search","defaults","config"],"repository":{"type":"git","url":"git://github.com/spenceralger/rcfinder.git"},"author":{"name":"Spencer Alger"},"bugs":{"url":"https://github.com/spenceralger/rcfinder/issues"},"license":"MIT","users":{"itonyyo":true}}