{"_id":"use-config","_rev":"457659","name":"use-config","description":"Use a config file in your project.","dist-tags":{"latest":"2.0.4"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"time":{"modified":"2024-06-20T07:41:50.000Z","created":"2017-05-23T06:16:20.992Z","2.0.4":"2018-01-19T15:16:23.654Z","2.0.3":"2018-01-09T03:01:54.969Z","2.0.2":"2018-01-08T03:50:09.965Z","2.0.1":"2018-01-05T05:37:45.526Z","2.0.0":"2018-01-05T05:30:36.115Z","1.1.0":"2017-11-07T09:35:26.495Z","1.0.2":"2017-05-26T13:56:27.939Z","1.0.1":"2017-05-23T08:02:57.325Z","1.0.0":"2017-05-23T07:48:16.620Z","0.1.2":"2017-05-23T07:23:01.672Z","0.1.1":"2017-05-23T06:31:47.311Z","0.1.0":"2017-05-23T06:16:20.992Z"},"users":{},"author":{"name":"egoist","email":"0x142857@gmail.com"},"repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"versions":{"2.0.4":{"name":"use-config","version":"2.0.4","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"dist/use-config.js","files":["dist"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo","build":"bili --filename use-config.js --buble.target.node 6","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","pupa":"^1.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.0.4","babel-preset-env":"^1.6.1","bili":"^1.6.3","eslint-config-rem":"^3.0.0","jest":"^22.0.4","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"rules":{"no-await-in-loop":0}},"babel":{"presets":[["env",{"targets":{"node":"current"}}]]},"gitHead":"2e8004ea7b7c2578749fef36942e7211384ffe2c","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@2.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-9ruSpSQAElcvdSZxZGb8J/Ep3n3OcO23Ab3weE4RSCH6oXVSmt0evRpElsM+pESkpWmRO2aqnvTswIlnerB6cw==","shasum":"1e14e5dbc600533aa5cd1b35d43a5be849b45b0c","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-2.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8OeiiU458zwfAw6kX95y3X0TJKyT7JOiPhvuAuWa3nAiATSE+b1kVo3lEfUIPInOVzvyl4PV7YEpWHRZWxA0bE0Q=="}],"size":4514,"noattachment":false,"key":"/use-config/-/use-config-2.0.4.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-2.0.4.tgz_1516374983488_0.2732745048124343"},"directories":{},"publish_time":1516374983654,"_cnpm_publish_time":1516374983654},"2.0.3":{"name":"use-config","version":"2.0.3","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"dist/use-config.js","files":["dist"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo","build":"bili --filename use-config.js --buble.target.node 6","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","pupa":"^1.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.0.4","babel-preset-env":"^1.6.1","bili":"^1.3.7","eslint-config-rem":"^3.0.0","jest":"^22.0.4","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"rules":{"no-await-in-loop":0}},"babel":{"presets":[["env",{"targets":{"node":"current"}}]]},"gitHead":"b3353659d17762f87a34a4eeec67274a5132ab97","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@2.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-6pNGneAVfRvjkOFLDhFvlzBJPWhNkkcHFBYziYspzxc8fRmR8WIXaOTjLKF3QWD4mLa6r8GH9+a3Z7TUxzIrNQ==","shasum":"ee8cda5b2874f953784b8372b61b0fa18d6b5942","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-2.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwimHdJNwAbjAD9iQKJ22GYNALnf40DvWIDrHql+ZziAIhAJV+Ps2XRDOZt9YRTsj3pzJJBkZ/zPYhRFbE5XnC9htS"}],"size":4549,"noattachment":false,"key":"/use-config/-/use-config-2.0.3.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-2.0.3.tgz_1515466914904_0.20846525020897388"},"directories":{},"publish_time":1515466914969,"_cnpm_publish_time":1515466914969},"2.0.2":{"name":"use-config","version":"2.0.2","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"dist/use-config.js","files":["dist"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo","build":"bili --filename use-config.js --buble.target.node 6","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","pupa":"^1.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.0.4","babel-preset-env":"^1.6.1","bili":"^1.3.7","eslint-config-rem":"^3.0.0","jest":"^22.0.4","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"rules":{"no-await-in-loop":0}},"babel":{"presets":[["env",{"targets":{"node":"current"}}]]},"gitHead":"045f380fab88adaeb581bb32b216c01ba38a52c7","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@2.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-nFuzOsPsxIWQrGPKdYIm+BzYlEFHotjnyV91jMyAjGSL3jTYeeTjvYHA6VEQGe+HKX7MLKwHndgEKdO1NCoWCw==","shasum":"137fb6290e884efdbe29963c417ffc2b333465c0","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElMHL7vhdK3ZtUKi9Q5VZzW6DRMZMm/sBbkvrHJaWWTAiEA9Aplb0wXJ6X7Ec4IP2G+WS4hxltY5wgLxReCUIxG0W4="}],"size":4481,"noattachment":false,"key":"/use-config/-/use-config-2.0.2.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-2.0.2.tgz_1515383409874_0.8704315507784486"},"directories":{},"publish_time":1515383409965,"_cnpm_publish_time":1515383409965},"2.0.1":{"name":"use-config","version":"2.0.1","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"dist/use-config.js","files":["dist"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo","build":"bili --filename use-config.js --buble.target.node 6","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","pupa":"^1.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.0.4","babel-preset-env":"^1.6.1","bili":"^1.3.7","eslint-config-rem":"^3.0.0","jest":"^22.0.4","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"rules":{"no-await-in-loop":0}},"babel":{"presets":[["env",{"targets":{"node":"current"}}]]},"gitHead":"e0e1cec4a3bb71e2d29d4de7cb2f056b0b2c7f22","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-CC0koNOGz/MuAIVTebltFcCg9RCIAX8rB6fa/G6GfToub2VRoysXctjQS8AmaodnWM5QMFQpmhxj94WfiKHt7g==","shasum":"56807134bb427224ce655de0a1a2be3221c10d9e","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDrO2km/FwQ1kmWoQXqZ0LOrDkhETBvk+aRM1gX3ddasAiA+GAbH4FW6B7qEPMpv0kakZ+L1uSbV34T8frgMJi/J0A=="}],"size":4452,"noattachment":false,"key":"/use-config/-/use-config-2.0.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-2.0.1.tgz_1515130664550_0.3858478176407516"},"directories":{},"publish_time":1515130665526,"_cnpm_publish_time":1515130665526},"2.0.0":{"name":"use-config","version":"2.0.0","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"dist/use-config.js","files":["dist"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo","build":"bili --filename use-config.js --buble.target.node 6","prepublishOnly":"npm run build"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","pupa":"^1.0.0"},"devDependencies":{"bili":"^1.3.7","eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"],"rules":{"no-await-in-loop":0}},"gitHead":"d6df88482f7e48ecd84fe2ef5ea9a5f1b2032ad7","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-3PXdERCJqGcWqpP3sm83iBVq1TB9kYkuoMTPZpZtZ8aX7aOUFOZz7/ROR20ETqEO+wabtID/g00Hlqd7F6KxIw==","shasum":"b14b5a58e43bdbed09a6e2f49d6e06ebc70f1b58","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjGiayrN3dUpk08mtqGHA7TsS+o3ujrk5rTi8EB1AZNAiA0hFBczXBQNyU6IRrqaPFtqSAbOUQE7dyW0l6RpB3MLw=="}],"size":4306,"noattachment":false,"key":"/use-config/-/use-config-2.0.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-2.0.0.tgz_1515130235522_0.6543734285514802"},"directories":{},"publish_time":1515130236115,"_cnpm_publish_time":1515130236115},"1.1.0":{"name":"use-config","version":"1.1.0","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"c9c55952ca83106d11ca3353e1729a593d316ae5","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-NYr4tkkcxtsfuQgf/SkVtYtNeGAh1uC4USA8Wtospm51oclwMVX8L/4XK1wgGFKb5heOSENFBYB9e9njIPWzzQ==","shasum":"0a0c7760e1f12cd546154fc67afefe49d048fbb4","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGt4zs/jlGr63XA1wFMBxnV/+kQKFGHKxVlN+VQBx/rAiEAn5L7+xYLj4VTkCAgq5pPciXLpAfFCLJJnHqvz+vyu9E="}],"size":3231,"noattachment":false,"key":"/use-config/-/use-config-1.1.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-1.1.0.tgz_1510047326416_0.5727725545875728"},"directories":{},"publish_time":1510047326495,"_cnpm_publish_time":1510047326495},"1.0.2":{"name":"use-config","version":"1.0.2","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"bbb4efb689958d559ae37d576ab75251db204443","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@1.0.2","_shasum":"7b04c1f80067ee251fefd14eecaec237be96ad22","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"7b04c1f80067ee251fefd14eecaec237be96ad22","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-1.0.2.tgz","integrity":"sha512-ZfcnwoKmidxXKt+EwtDCxJIIXHI3Utc9EpRtmLZp23kiG6WJEzMX11tBGKdehNAwN8yB836FRyA2aS2Na+7KfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8T4NhvPak6yDikEHmJfXfhF08ZXhhNGCwmFb2IAWlfAiAPikDGUSUWWm0PzFupTrtE5iDiuYGXjUW/GrQzw1Z4Vw=="}],"size":3166,"noattachment":false,"key":"/use-config/-/use-config-1.0.2.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-1.0.2.tgz_1495806987837_0.5508654660079628"},"directories":{},"publish_time":1495806987939,"_cnpm_publish_time":1495806987939},"1.0.1":{"name":"use-config","version":"1.0.1","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"9b4b6996b67cb95d292060ac235246d643489019","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@1.0.1","_shasum":"b4eafd4133eeb26a9fdcc7b375a42586fcc1fda1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"b4eafd4133eeb26a9fdcc7b375a42586fcc1fda1","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-1.0.1.tgz","integrity":"sha512-FBMjCPzH2VR7m14xQJG903VGhJkNVewhCVFI98oQdP1+2Rk3CFPDv/RcdI2D6WDHhTlWOk088covh6iMVQJ1FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxEcA2Sv6zyvnqehQ2taWdRpe5k/ECH2eNMBmmm8vaDQIhAN3f7DFH7QSHHmuRKwDBkFvFPkaYIBY9L55YACto4xRO"}],"size":3129,"noattachment":false,"key":"/use-config/-/use-config-1.0.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-1.0.1.tgz_1495526577207_0.868453148053959"},"directories":{},"publish_time":1495526577325,"_cnpm_publish_time":1495526577325},"1.0.0":{"name":"use-config","version":"1.0.0","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"ed46131cb582f0246eaed576aa0b0063ae533d58","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@1.0.0","_shasum":"6ff317c94616b9eacdd299386c5f31a46a8e6112","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"6ff317c94616b9eacdd299386c5f31a46a8e6112","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-1.0.0.tgz","integrity":"sha512-kcJjbukt49MVppD8fwUc+kMSd1y12xHWlgvnme0tK/ndU7IbQ1PIdP1thoiuocltoh2XlqSW3imwfHZi97OECg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmJnsuzq0W0OK/rR8mqY7Sq/esF82y3hdmfweVZAIYSAiA2BF1eDjbQEFRDxqSY2+yKRNMCwrIsUoCdvCAqUwoBXw=="}],"size":3115,"noattachment":false,"key":"/use-config/-/use-config-1.0.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-1.0.0.tgz_1495525696322_0.7630240626167506"},"directories":{},"publish_time":1495525696620,"_cnpm_publish_time":1495525696620},"0.1.2":{"name":"use-config","version":"0.1.2","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"load-json-file":"^2.0.0","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"0923d194e228b056f4932c8e18955fc3f3a3162b","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@0.1.2","_shasum":"510ba0c6c0e88bcf679b1c9c10a2d9bebb603361","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"510ba0c6c0e88bcf679b1c9c10a2d9bebb603361","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-0.1.2.tgz","integrity":"sha512-oz7SReRzY+tFemdEgyhSFTkMk5hInUSQECzWAgjKUwL47xdEBdyzXiPF8vkfVHspoIzl4gZxM7Z/Lgyitbb4BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGR9XyFnBGRafGea3waLgMpGZ14de9n9XiWwG5+HJMbQAiB7uSnIM3h/VXd7WmGL+EGO+mthFiu27wf7cANfMg3kug=="}],"size":3117,"noattachment":false,"key":"/use-config/-/use-config-0.1.2.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-0.1.2.tgz_1495524181544_0.8162012854591012"},"directories":{},"publish_time":1495524181672,"_cnpm_publish_time":1495524181672},"0.1.1":{"name":"use-config","version":"0.1.1","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverage && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"fs-extra":"^3.0.1","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"e40265b6e3b1a432fa386ef8c5a1ed969c0eb608","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@0.1.1","_shasum":"f84c3d901209a8cd5f6c608db1ae1244179ba625","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"f84c3d901209a8cd5f6c608db1ae1244179ba625","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-0.1.1.tgz","integrity":"sha512-iHjF36xahexpqN8SFIjqk0OpNgL3m336CReuLPyYhYW0HDgfpWlb+nBfSo5I+B/3pUX9tr2FKjeD+H9pw9YTdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMIOdT/DXzlqFybWCBB9EhupVsrlXJ6Dklqtbhj6nQKwIhAIGOBMlp79CarLUnWXcKkWPs9nOceBpoh42+sMPCE/O3"}],"size":3131,"noattachment":false,"key":"/use-config/-/use-config-0.1.1.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-0.1.1.tgz_1495521107195_0.6835757654625922"},"directories":{},"publish_time":1495521107311,"_cnpm_publish_time":1495521107311},"0.1.0":{"name":"use-config","version":"0.1.0","description":"Use a config file in your project.","repository":{"url":"git+https://github.com/egoist/use-config.git","type":"git"},"main":"index.js","files":["index.js"],"scripts":{"test":"jest && npm run lint","test:cov":"jest --coverafe && npm run lint","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"dependencies":{"fs-extra":"^3.0.1","path-exists":"^3.0.0","promise.series":"^0.2.0","pupa":"^1.0.0"},"devDependencies":{"eslint-config-rem":"^3.0.0","jest-cli":"^19.0.0","xo":"^0.18.0"},"xo":{"extends":"rem/prettier","envs":["jest"]},"gitHead":"02dae80ab5116bc2f8499f04987eb6b4646b2b91","bugs":{"url":"https://github.com/egoist/use-config/issues"},"homepage":"https://github.com/egoist/use-config#readme","_id":"use-config@0.1.0","_shasum":"86a30df05dec6d573948294dd6426d9343961b0e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.6.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"86a30df05dec6d573948294dd6426d9343961b0e","tarball":"http://registry-npm.ywwl.com/use-config/download/use-config-0.1.0.tgz","integrity":"sha512-KF1eHaEWNZTzjMI0rVCv5brZpe7mj8LVyI650qvSEsBNfFAYR4YJnZ03jyRZ72331vmSX3MZ7yC5GSM7kj8S2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXVmaUdiOb6KjSgWyIhxFB/V153LXYa09shE12LlT22wIhAM8ddWC3eR94H2bQOOjWMWxLSAdfvHmYGEjFlmPVv24z"}],"size":3052,"noattachment":false,"key":"/use-config/-/use-config-0.1.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-config-0.1.0.tgz_1495520180922_0.48763131769374013"},"directories":{},"publish_time":1495520180992,"_cnpm_publish_time":1495520180992}},"readme":"# use-config\n\n[![NPM version](https://img.shields.io/npm/v/use-config.svg?style=flat)](https://npmjs.com/package/use-config) [![NPM downloads](https://img.shields.io/npm/dm/use-config.svg?style=flat)](https://npmjs.com/package/use-config) [![CircleCI](https://circleci.com/gh/egoist/use-config/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/use-config/tree/master) [![codecov](https://codecov.io/gh/egoist/use-config/branch/master/graph/badge.svg)](https://codecov.io/gh/egoist/use-config)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)\n\n## Install\n\n```bash\nyarn add use-config\n```\n\n## Usage\n\n```js\nconst UseConfig = require('use-config')\n\n// Find config in order:\n// poi.config.js\n// package.json's poi property\nconst useConfig = new UseConfig({ name: 'poi' })\n\nuseConfig.load().then(res => {\n  res.path // path to found config\n  res.config // content of config\n\n  if (!res.path) {\n    // Config file is not found\n  }\n}).catch(err => {\n  // maybe a parse error\n})\n```\n\nYou can also specify the files we need to look for:\n\n```js\n// To make it use poi.config.js and .poirc and poi.config.yml only\nconst useConfig = new UseConfig({\n  name: 'poi',\n  files: ['{name}.config.js', '.{name}rc', '{name}.config.yml']\n})\n\n// By default all non-js file will be treated as JSON\n// But you can use custom loader for specific extension\nuseConfig.addLoader(/\\.yml$/, filepath => parseYamlFile(filepath))\n\nuseConfig.load().then(res => {/* ... */})\n```\n\n> **NOTE:** \n>\n> when config value is `undefined`, we will ignore it and find next file. For example, you have a `package.json` but `pkg[name]` does not exist. If it's the last file that we can find, we will return `{ path, config: undefined }`.\n\n## API\n\n### new UseConfig([options])\n\n#### options\n\n##### options.name\n\nType: `string`<br>\nRequired: `true`\n\nThe config name, for `name: 'poi'` and `files: ['{name}.config.js', 'package.json']`, it will search `poi.config.js` and `poi` property in `package.json`.\n\n##### options.files\n\nDefault: `['{name}.config.js', 'package.json']`\n\nThe files to search in order, when it's `package.json`, we return the `name` property of it.\n\n##### options.cwd\n\nDefault: `process.cwd()`\n\nThe path to search files.\n\n##### options.fallbackLoader\n\nType: `function`\n\nA fallback loader for non-js files, by default we load it with `load-json-file`:\n\n```js\nfunction fallbackLoader(filepath) {\n  return this.sync ? loadJsonFile.sync(filepath) : loadJsonFile(file)\n}\n```\n\n### useConfig.load()\n\nReturn: A Promise which resolves to `{ path, config }` or `{}` when no config file was found.\n\nBy default all `.js` files will be loaded via `require` and all other files will be treated as JSON format which is load using `fs` and `JSON.parse`.\n\n### useConfig.loadSync()\n\nReturn: `{ path, config }` or `{}` when no config file was found.\n\nTo use `.loadSync()` method you should ensure all custom loaders added via `.addLoader()` supports this.\n\n### useConfig.addLoader({ test, loader })\n\n#### test\n\nType: `RegExp`<br>\nRequired: `true`\n\nThe regular expression to match filepath.\n\n#### loader\n\nType: `function`<br>\nRequired: `true`\n\nThe function to get file content. Either synchronus or returns a Promise.\n\nIf you're using the `.loadSync()` method please ensure it performs no async operations when `this.sync === true`:\n\n```js\nfunction yamlLoader(filepath) {\n  return this.sync ? yaml.loadSync(filepath) : yaml.load(filepath)\n}\n```\n\nNote that you can't use `arrow function` here since you need access to `this`.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n## Author\n\n**use-config** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by egoist with help from contributors ([list](https://github.com/egoist/use-config/contributors)).\n\n> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)\n","_attachments":{},"homepage":"https://github.com/egoist/use-config#readme","bugs":{"url":"https://github.com/egoist/use-config/issues"},"license":"MIT"}