{"_id":"config-file","_rev":"90811","name":"config-file","description":"Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.","dist-tags":{"latest":"0.3.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:29:50.000Z","created":"2014-02-09T09:27:45.284Z","0.3.2":"2015-12-30T17:49:11.930Z","0.3.1":"2015-07-06T20:42:53.320Z","0.3.0":"2015-07-03T08:26:02.074Z","0.2.0":"2015-07-03T06:16:25.383Z","0.1.8":"2014-03-21T13:59:39.862Z","0.1.7":"2014-03-21T13:57:33.756Z","0.1.6":"2014-03-21T02:08:19.377Z","0.1.5":"2014-02-17T11:42:42.274Z","0.1.4":"2014-02-12T20:14:22.525Z","0.1.3":"2014-02-10T12:53:30.182Z","0.1.2":"2014-02-10T04:02:55.970Z","0.1.1":"2014-02-10T03:46:32.764Z","0.1.0":"2014-02-09T09:27:45.284Z"},"users":{"rmlewisuk":true,"shiva127":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/config-file.git"},"versions":{"0.3.2":{"name":"config-file","description":"Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.","version":"0.3.2","homepage":"https://github.com/jonschlinkert/config-file","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","global-modules":"^0.1.0","look-up":"^0.7.1","read-data":"^0.3.0"},"keywords":["config","configuration","detect","file","find","get","glob","json","load","look","rc","resolve","runtime","runtime-config","up","yaml"],"verb":{"related":{"list":["global-modules","look-up","read-data","read-yaml"]}},"gitHead":"e92d0672c08bd9e3f1af3e087b50bfd0c72fe76b","_id":"config-file@0.3.2","_shasum":"f9db9071dc0dfa47fc763ae5d084ee0b7996bcd7","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f9db9071dc0dfa47fc763ae5d084ee0b7996bcd7","size":3389,"noattachment":false,"key":"/config-file/-/config-file-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.3.2.tgz"},"directories":{},"publish_time":1451497751930,"_cnpm_publish_time":1451497751930,"_hasShrinkwrap":false},"0.3.1":{"name":"config-file","version":"0.3.1","description":"Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.","homepage":"https://github.com/jonschlinkert/config-file","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"extend-shallow":"^2.0.0","global-modules":"^0.1.0","look-up":"^0.7.1","read-data":"^0.3.0"},"keywords":["config","configuration","detect","file","find","get","glob","json","load","look","rc","resolve","runtime","runtime-config","up","yaml"],"gitHead":"7d6bae3c2a0c22a25fb13e7e8c5b62197524a9ec","_id":"config-file@0.3.1","_shasum":"bda7d37d04b0fb7205ddbca9c3dda62b724a67c0","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bda7d37d04b0fb7205ddbca9c3dda62b724a67c0","size":3355,"noattachment":false,"key":"/config-file/-/config-file-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.3.1.tgz"},"directories":{},"publish_time":1436215373320,"_cnpm_publish_time":1436215373320,"_hasShrinkwrap":false},"0.3.0":{"name":"config-file","version":"0.3.0","description":"Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.","homepage":"https://github.com/jonschlinkert/config-file","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"extend-shallow":"^2.0.0","global-modules":"^0.1.0","look-up":"^0.7.1","read-data":"^0.3.0"},"keywords":["config","configuration","detect","file","find","get","glob","json","load","look","rc","resolve","runtime","runtime-config","up","yaml"],"gitHead":"90703826f18884e628a28960775bf058ccd53083","_id":"config-file@0.3.0","_shasum":"ed3ed2d905b8a7dc0de2bf07cf95f277583162af","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ed3ed2d905b8a7dc0de2bf07cf95f277583162af","size":3232,"noattachment":false,"key":"/config-file/-/config-file-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.3.0.tgz"},"directories":{},"publish_time":1435911962074,"_cnpm_publish_time":1435911962074,"_hasShrinkwrap":false},"0.2.0":{"name":"config-file","version":"0.2.0","description":"Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.","homepage":"https://github.com/jonschlinkert/config-file","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"extend-shallow":"^2.0.0","look-up":"^0.7.1","read-data":"^0.3.0"},"keywords":["config","configuration","detect","file","find","get","glob","json","load","look","rc","resolve","runtime","runtime-config","up","yaml"],"gitHead":"90703826f18884e628a28960775bf058ccd53083","_id":"config-file@0.2.0","_shasum":"833bd76b0fbe1acdbbe75381649d51e724b126f2","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"833bd76b0fbe1acdbbe75381649d51e724b126f2","size":2568,"noattachment":false,"key":"/config-file/-/config-file-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.2.0.tgz"},"directories":{},"publish_time":1435904185383,"_cnpm_publish_time":1435904185383,"_hasShrinkwrap":false},"0.1.8":{"name":"config-file","version":"0.1.8","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","load config","config store","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.8","dist":{"shasum":"7add4abd198f6e1090e5fb7e08decb89e9ffc74a","size":3152,"noattachment":false,"key":"/config-file/-/config-file-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.8.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395410379862,"_cnpm_publish_time":1395410379862,"_hasShrinkwrap":false},"0.1.7":{"name":"config-file","version":"0.1.7","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","load config","config store","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.7","dist":{"shasum":"071c254a05aeb206ec104a72cc4960fd50cac82d","size":3164,"noattachment":false,"key":"/config-file/-/config-file-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.7.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395410253756,"_cnpm_publish_time":1395410253756,"_hasShrinkwrap":false},"0.1.6":{"name":"config-file","version":"0.1.6","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","load config","config store","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.6","dist":{"shasum":"156535654c5b7aa0ae583e3b8525c3aab8beac44","size":3157,"noattachment":false,"key":"/config-file/-/config-file-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.6.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395367699377,"_cnpm_publish_time":1395367699377,"_hasShrinkwrap":false},"0.1.5":{"name":"config-file","version":"0.1.5","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","load config","config store","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.5","dist":{"shasum":"165944cf9827bda15cfe4fd39f2f28cea0176404","size":3151,"noattachment":false,"key":"/config-file/-/config-file-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.5.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392637362274,"_cnpm_publish_time":1392637362274,"_hasShrinkwrap":false},"0.1.4":{"name":"config-file","version":"0.1.4","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.4","dist":{"shasum":"0eb7ec3fe28ce8e4c0ecf1d84a2a8868ecbc36e0","size":3145,"noattachment":false,"key":"/config-file/-/config-file-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392236062525,"_cnpm_publish_time":1392236062525,"_hasShrinkwrap":false},"0.1.3":{"name":"config-file","version":"0.1.3","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.3","dist":{"shasum":"a0faa8b1d41387dd06c0cca52e48b08e8d015029","size":3112,"noattachment":false,"key":"/config-file/-/config-file-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392036810182,"_cnpm_publish_time":1392036810182,"_hasShrinkwrap":false},"0.1.2":{"name":"config-file","version":"0.1.2","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1","chalk":"~0.4.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.2","dist":{"shasum":"bc9d60a355a58dbeb6d0b073cb195aef4ddaea52","size":3146,"noattachment":false,"key":"/config-file/-/config-file-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392004975970,"_cnpm_publish_time":1392004975970,"_hasShrinkwrap":false},"0.1.1":{"name":"config-file","version":"0.1.1","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1","chalk":"~0.4.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.1","dist":{"shasum":"fe74ec3d5d4ce0e9571009d5e42accb2900cf486","size":3142,"noattachment":false,"key":"/config-file/-/config-file-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392003992764,"_cnpm_publish_time":1392003992764,"_hasShrinkwrap":false},"0.1.0":{"name":"config-file","version":"0.1.0","description":"Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.","repository":{"type":"git","url":"https://github.com/jonschlinkert/config-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/config-file/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"dependencies":{"findup-sync":"~0.1.2","fs-utils":"~0.3.6","lodash":"~2.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"keywords":["config","config file","configuration","runtime config"],"homepage":"https://github.com/jonschlinkert/config-file","_id":"config-file@0.1.0","dist":{"shasum":"a9e4770d2e01c04c0d04ba4e731451f518214636","size":3020,"noattachment":false,"key":"/config-file/-/config-file-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/config-file/download/config-file-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1391938065284,"_cnpm_publish_time":1391938065284,"_hasShrinkwrap":false}},"readme":"# config-file [![NPM version](https://badge.fury.io/js/config-file.svg)](http://badge.fury.io/js/config-file)\n\n> Find and load a YAML or JSON config file (like .jshintrc, package.json, bower.json etc) from either a local project, installed npm module, or the user's home directory.\n\n## Heads up! Breaking changes\n\nv0.3.0 was a complete refactor. The readme [API](#API) section describes the new API.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i config-file --save\n```\n\n## Usage\n\n```js\nvar config = require('config-file');\n```\n\n## API\n\n### [config](index.js#L29)\n\nReturns an object from parsing JSON or YAML from the given config file. Uses `config.resovle` to resolve the filepath. If no filepath is specified, `config.resolve` falls back to 'package.json'\n\n**Params**\n\n* `filename` **{String}**: The name of the file to parse\n* `options` **{Object}**: Optionally specify `{parse:'json'}` or `{parse:'yaml'}`\n* `returns` **{Object}**\n\n**Example**\n\n```js\nvar opts = config('.jshintrc');\n```\n\n### [.npm](index.js#L53)\n\nParse a config file located in a locally installed npm package (in `node_modules`).\n\n**Params**\n\n* `moduleName` **{String}**: The name of the npm package to search in `node_modules`\n* `filename` **{String}**: Name of the file to find.\n* `options` **{Object}**\n\n**Example**\n\n```js\nvar data = config.npm('read-data', 'package.json');\n//=> { name: \"read-data\", ... }\n```\n\n### [.global](index.js#L78)\n\nParse a config file in a globally installed npm package.\n\n**Params**\n\n* `moduleName` **{String}**: The name of the global module to search\n* `filename` **{String}**: Name of the file to find.\n* `options` **{Object}**\n\n**Example**\n\n```js\nvar data = config.global('verb-cli', 'package.json');\n//=> { name: \"verb-cli\", ... }\n```\n\n### [.home](index.js#L100)\n\nReturn a filepath the user's home directory\n\n**Params**\n\n* `filepath` **{String}**: Filepath to find\n* `options` **{Object}**\n\n**Example**\n\n```js\nvar data = config.home('.jshintrc');\n```\n\n### [.resolve](index.js#L120)\n\nReturns the fully resolve path for the specified config file. Searches the local project first, then the user's home directory.\n\n**Params**\n\n* `filepath` **{String}**: Filepath to find\n* `options` **{Object}**\n* `returns` **{String}**: filepath to config file\n\n**Example**\n\n```js\nvar fp = config.resolve('.jshintrc');\n//=> '/Users/jonschlinkert/dev/config-file/package.json'\n```\n\n### [.parse](index.js#L142)\n\nParse a config file. Same as using `config()`.\n\n**Params**\n\n* `filename` **{String}**: Name of the file to parse.\n* `options` **{Object}**\n* `returns` **{Object}**\n\n**Example**\n\n```js\nvar data = config.parse('.jshintrc');\n```\n\n## Related projects\n\n* [global-modules](https://github.com/jonschlinkert/global-modules): The directory used by npm for globally installed npm modules.\n* [look-up](https://github.com/jonschlinkert/look-up): Like findup-sync and supports the same features but 20x-40x faster on avg.\n* [read-data](https://github.com/jonschlinkert/read-data): Read JSON or YAML files.\n* [read-yaml](https://github.com/jonschlinkert/read-yaml): Very thin wrapper around js-yaml for directly reading in YAML files.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm i -g verb-cli && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/config-file/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 06, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/config-file","bugs":{"url":"https://github.com/jonschlinkert/config-file/issues"},"license":"MIT"}